2021-03-23 10:41:41 +00:00
|
|
|
// Code generated by protoc-gen-go-drpc. DO NOT EDIT.
|
2022-12-01 11:18:34 +00:00
|
|
|
// protoc-gen-go-drpc version: v0.0.32
|
2021-03-23 10:41:41 +00:00
|
|
|
// source: multinode.proto
|
|
|
|
|
|
|
|
package multinodepb
|
|
|
|
|
|
|
|
import (
|
|
|
|
bytes "bytes"
|
|
|
|
context "context"
|
|
|
|
errors "errors"
|
|
|
|
|
|
|
|
jsonpb "github.com/gogo/protobuf/jsonpb"
|
|
|
|
proto "github.com/gogo/protobuf/proto"
|
|
|
|
|
|
|
|
drpc "storj.io/drpc"
|
|
|
|
drpcerr "storj.io/drpc/drpcerr"
|
|
|
|
)
|
|
|
|
|
|
|
|
type drpcEncoding_File_multinode_proto struct{}
|
|
|
|
|
|
|
|
func (drpcEncoding_File_multinode_proto) Marshal(msg drpc.Message) ([]byte, error) {
|
|
|
|
return proto.Marshal(msg.(proto.Message))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (drpcEncoding_File_multinode_proto) Unmarshal(buf []byte, msg drpc.Message) error {
|
|
|
|
return proto.Unmarshal(buf, msg.(proto.Message))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (drpcEncoding_File_multinode_proto) JSONMarshal(msg drpc.Message) ([]byte, error) {
|
|
|
|
var buf bytes.Buffer
|
|
|
|
err := new(jsonpb.Marshaler).Marshal(&buf, msg.(proto.Message))
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return buf.Bytes(), nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (drpcEncoding_File_multinode_proto) JSONUnmarshal(buf []byte, msg drpc.Message) error {
|
|
|
|
return jsonpb.Unmarshal(bytes.NewReader(buf), msg.(proto.Message))
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCStorageClient interface {
|
|
|
|
DRPCConn() drpc.Conn
|
|
|
|
|
|
|
|
DiskSpace(ctx context.Context, in *DiskSpaceRequest) (*DiskSpaceResponse, error)
|
2021-06-03 12:52:28 +01:00
|
|
|
Usage(ctx context.Context, in *StorageUsageRequest) (*StorageUsageResponse, error)
|
|
|
|
UsageSatellite(ctx context.Context, in *StorageUsageSatelliteRequest) (*StorageUsageSatelliteResponse, error)
|
2021-03-23 10:41:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type drpcStorageClient struct {
|
|
|
|
cc drpc.Conn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewDRPCStorageClient(cc drpc.Conn) DRPCStorageClient {
|
|
|
|
return &drpcStorageClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcStorageClient) DRPCConn() drpc.Conn { return c.cc }
|
|
|
|
|
|
|
|
func (c *drpcStorageClient) DiskSpace(ctx context.Context, in *DiskSpaceRequest) (*DiskSpaceResponse, error) {
|
|
|
|
out := new(DiskSpaceResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Storage/DiskSpace", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-06-03 12:52:28 +01:00
|
|
|
func (c *drpcStorageClient) Usage(ctx context.Context, in *StorageUsageRequest) (*StorageUsageResponse, error) {
|
|
|
|
out := new(StorageUsageResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Storage/Usage", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcStorageClient) UsageSatellite(ctx context.Context, in *StorageUsageSatelliteRequest) (*StorageUsageSatelliteResponse, error) {
|
|
|
|
out := new(StorageUsageSatelliteResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Storage/UsageSatellite", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-03-23 10:41:41 +00:00
|
|
|
type DRPCStorageServer interface {
|
|
|
|
DiskSpace(context.Context, *DiskSpaceRequest) (*DiskSpaceResponse, error)
|
2021-06-03 12:52:28 +01:00
|
|
|
Usage(context.Context, *StorageUsageRequest) (*StorageUsageResponse, error)
|
|
|
|
UsageSatellite(context.Context, *StorageUsageSatelliteRequest) (*StorageUsageSatelliteResponse, error)
|
2021-03-23 10:41:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCStorageUnimplementedServer struct{}
|
|
|
|
|
|
|
|
func (s *DRPCStorageUnimplementedServer) DiskSpace(context.Context, *DiskSpaceRequest) (*DiskSpaceResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-03-23 10:41:41 +00:00
|
|
|
}
|
|
|
|
|
2021-06-03 12:52:28 +01:00
|
|
|
func (s *DRPCStorageUnimplementedServer) Usage(context.Context, *StorageUsageRequest) (*StorageUsageResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-03 12:52:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCStorageUnimplementedServer) UsageSatellite(context.Context, *StorageUsageSatelliteRequest) (*StorageUsageSatelliteResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-03 12:52:28 +01:00
|
|
|
}
|
|
|
|
|
2021-03-23 10:41:41 +00:00
|
|
|
type DRPCStorageDescription struct{}
|
|
|
|
|
2021-06-03 12:52:28 +01:00
|
|
|
func (DRPCStorageDescription) NumMethods() int { return 3 }
|
2021-03-23 10:41:41 +00:00
|
|
|
|
|
|
|
func (DRPCStorageDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool) {
|
|
|
|
switch n {
|
|
|
|
case 0:
|
|
|
|
return "/multinode.Storage/DiskSpace", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCStorageServer).
|
|
|
|
DiskSpace(
|
|
|
|
ctx,
|
|
|
|
in1.(*DiskSpaceRequest),
|
|
|
|
)
|
|
|
|
}, DRPCStorageServer.DiskSpace, true
|
2021-06-03 12:52:28 +01:00
|
|
|
case 1:
|
|
|
|
return "/multinode.Storage/Usage", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCStorageServer).
|
|
|
|
Usage(
|
|
|
|
ctx,
|
|
|
|
in1.(*StorageUsageRequest),
|
|
|
|
)
|
|
|
|
}, DRPCStorageServer.Usage, true
|
|
|
|
case 2:
|
|
|
|
return "/multinode.Storage/UsageSatellite", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCStorageServer).
|
|
|
|
UsageSatellite(
|
|
|
|
ctx,
|
|
|
|
in1.(*StorageUsageSatelliteRequest),
|
|
|
|
)
|
|
|
|
}, DRPCStorageServer.UsageSatellite, true
|
2021-03-23 10:41:41 +00:00
|
|
|
default:
|
|
|
|
return "", nil, nil, nil, false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func DRPCRegisterStorage(mux drpc.Mux, impl DRPCStorageServer) error {
|
|
|
|
return mux.Register(impl, DRPCStorageDescription{})
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCStorage_DiskSpaceStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*DiskSpaceResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcStorage_DiskSpaceStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcStorage_DiskSpaceStream) SendAndClose(m *DiskSpaceResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-06-03 12:52:28 +01:00
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCStorage_UsageStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*StorageUsageResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcStorage_UsageStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcStorage_UsageStream) SendAndClose(m *StorageUsageResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCStorage_UsageSatelliteStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*StorageUsageSatelliteResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcStorage_UsageSatelliteStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcStorage_UsageSatelliteStream) SendAndClose(m *StorageUsageSatelliteResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-03-23 10:41:41 +00:00
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCBandwidthClient interface {
|
|
|
|
DRPCConn() drpc.Conn
|
|
|
|
|
|
|
|
MonthSummary(ctx context.Context, in *BandwidthMonthSummaryRequest) (*BandwidthMonthSummaryResponse, error)
|
2021-06-02 13:13:42 +01:00
|
|
|
BandwidthSummarySatellite(ctx context.Context, in *BandwidthSummarySatelliteRequest) (*BandwidthSummarySatelliteResponse, error)
|
|
|
|
BandwidthSummary(ctx context.Context, in *BandwidthSummaryRequest) (*BandwidthSummaryResponse, error)
|
|
|
|
EgressSummarySatellite(ctx context.Context, in *EgressSummarySatelliteRequest) (*EgressSummarySatelliteResponse, error)
|
|
|
|
EgressSummary(ctx context.Context, in *EgressSummaryRequest) (*EgressSummaryResponse, error)
|
|
|
|
IngressSummarySatellite(ctx context.Context, in *IngressSummarySatelliteRequest) (*IngressSummarySatelliteResponse, error)
|
|
|
|
IngressSummary(ctx context.Context, in *IngressSummaryRequest) (*IngressSummaryResponse, error)
|
|
|
|
DailySatellite(ctx context.Context, in *DailySatelliteRequest) (*DailySatelliteResponse, error)
|
|
|
|
Daily(ctx context.Context, in *DailyRequest) (*DailyResponse, error)
|
2021-03-23 10:41:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type drpcBandwidthClient struct {
|
|
|
|
cc drpc.Conn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewDRPCBandwidthClient(cc drpc.Conn) DRPCBandwidthClient {
|
|
|
|
return &drpcBandwidthClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcBandwidthClient) DRPCConn() drpc.Conn { return c.cc }
|
|
|
|
|
|
|
|
func (c *drpcBandwidthClient) MonthSummary(ctx context.Context, in *BandwidthMonthSummaryRequest) (*BandwidthMonthSummaryResponse, error) {
|
|
|
|
out := new(BandwidthMonthSummaryResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Bandwidth/MonthSummary", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-06-02 13:13:42 +01:00
|
|
|
func (c *drpcBandwidthClient) BandwidthSummarySatellite(ctx context.Context, in *BandwidthSummarySatelliteRequest) (*BandwidthSummarySatelliteResponse, error) {
|
|
|
|
out := new(BandwidthSummarySatelliteResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Bandwidth/BandwidthSummarySatellite", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcBandwidthClient) BandwidthSummary(ctx context.Context, in *BandwidthSummaryRequest) (*BandwidthSummaryResponse, error) {
|
|
|
|
out := new(BandwidthSummaryResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Bandwidth/BandwidthSummary", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcBandwidthClient) EgressSummarySatellite(ctx context.Context, in *EgressSummarySatelliteRequest) (*EgressSummarySatelliteResponse, error) {
|
|
|
|
out := new(EgressSummarySatelliteResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Bandwidth/EgressSummarySatellite", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcBandwidthClient) EgressSummary(ctx context.Context, in *EgressSummaryRequest) (*EgressSummaryResponse, error) {
|
|
|
|
out := new(EgressSummaryResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Bandwidth/EgressSummary", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcBandwidthClient) IngressSummarySatellite(ctx context.Context, in *IngressSummarySatelliteRequest) (*IngressSummarySatelliteResponse, error) {
|
|
|
|
out := new(IngressSummarySatelliteResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Bandwidth/IngressSummarySatellite", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcBandwidthClient) IngressSummary(ctx context.Context, in *IngressSummaryRequest) (*IngressSummaryResponse, error) {
|
|
|
|
out := new(IngressSummaryResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Bandwidth/IngressSummary", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcBandwidthClient) DailySatellite(ctx context.Context, in *DailySatelliteRequest) (*DailySatelliteResponse, error) {
|
|
|
|
out := new(DailySatelliteResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Bandwidth/DailySatellite", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcBandwidthClient) Daily(ctx context.Context, in *DailyRequest) (*DailyResponse, error) {
|
|
|
|
out := new(DailyResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Bandwidth/Daily", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-03-23 10:41:41 +00:00
|
|
|
type DRPCBandwidthServer interface {
|
|
|
|
MonthSummary(context.Context, *BandwidthMonthSummaryRequest) (*BandwidthMonthSummaryResponse, error)
|
2021-06-02 13:13:42 +01:00
|
|
|
BandwidthSummarySatellite(context.Context, *BandwidthSummarySatelliteRequest) (*BandwidthSummarySatelliteResponse, error)
|
|
|
|
BandwidthSummary(context.Context, *BandwidthSummaryRequest) (*BandwidthSummaryResponse, error)
|
|
|
|
EgressSummarySatellite(context.Context, *EgressSummarySatelliteRequest) (*EgressSummarySatelliteResponse, error)
|
|
|
|
EgressSummary(context.Context, *EgressSummaryRequest) (*EgressSummaryResponse, error)
|
|
|
|
IngressSummarySatellite(context.Context, *IngressSummarySatelliteRequest) (*IngressSummarySatelliteResponse, error)
|
|
|
|
IngressSummary(context.Context, *IngressSummaryRequest) (*IngressSummaryResponse, error)
|
|
|
|
DailySatellite(context.Context, *DailySatelliteRequest) (*DailySatelliteResponse, error)
|
|
|
|
Daily(context.Context, *DailyRequest) (*DailyResponse, error)
|
2021-03-23 10:41:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCBandwidthUnimplementedServer struct{}
|
|
|
|
|
|
|
|
func (s *DRPCBandwidthUnimplementedServer) MonthSummary(context.Context, *BandwidthMonthSummaryRequest) (*BandwidthMonthSummaryResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-03-23 10:41:41 +00:00
|
|
|
}
|
|
|
|
|
2021-06-02 13:13:42 +01:00
|
|
|
func (s *DRPCBandwidthUnimplementedServer) BandwidthSummarySatellite(context.Context, *BandwidthSummarySatelliteRequest) (*BandwidthSummarySatelliteResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-02 13:13:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCBandwidthUnimplementedServer) BandwidthSummary(context.Context, *BandwidthSummaryRequest) (*BandwidthSummaryResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-02 13:13:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCBandwidthUnimplementedServer) EgressSummarySatellite(context.Context, *EgressSummarySatelliteRequest) (*EgressSummarySatelliteResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-02 13:13:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCBandwidthUnimplementedServer) EgressSummary(context.Context, *EgressSummaryRequest) (*EgressSummaryResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-02 13:13:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCBandwidthUnimplementedServer) IngressSummarySatellite(context.Context, *IngressSummarySatelliteRequest) (*IngressSummarySatelliteResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-02 13:13:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCBandwidthUnimplementedServer) IngressSummary(context.Context, *IngressSummaryRequest) (*IngressSummaryResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-02 13:13:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCBandwidthUnimplementedServer) DailySatellite(context.Context, *DailySatelliteRequest) (*DailySatelliteResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-02 13:13:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCBandwidthUnimplementedServer) Daily(context.Context, *DailyRequest) (*DailyResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-02 13:13:42 +01:00
|
|
|
}
|
|
|
|
|
2021-03-23 10:41:41 +00:00
|
|
|
type DRPCBandwidthDescription struct{}
|
|
|
|
|
2021-06-02 13:13:42 +01:00
|
|
|
func (DRPCBandwidthDescription) NumMethods() int { return 9 }
|
2021-03-23 10:41:41 +00:00
|
|
|
|
|
|
|
func (DRPCBandwidthDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool) {
|
|
|
|
switch n {
|
|
|
|
case 0:
|
|
|
|
return "/multinode.Bandwidth/MonthSummary", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCBandwidthServer).
|
|
|
|
MonthSummary(
|
|
|
|
ctx,
|
|
|
|
in1.(*BandwidthMonthSummaryRequest),
|
|
|
|
)
|
|
|
|
}, DRPCBandwidthServer.MonthSummary, true
|
2021-06-02 13:13:42 +01:00
|
|
|
case 1:
|
|
|
|
return "/multinode.Bandwidth/BandwidthSummarySatellite", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCBandwidthServer).
|
|
|
|
BandwidthSummarySatellite(
|
|
|
|
ctx,
|
|
|
|
in1.(*BandwidthSummarySatelliteRequest),
|
|
|
|
)
|
|
|
|
}, DRPCBandwidthServer.BandwidthSummarySatellite, true
|
|
|
|
case 2:
|
|
|
|
return "/multinode.Bandwidth/BandwidthSummary", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCBandwidthServer).
|
|
|
|
BandwidthSummary(
|
|
|
|
ctx,
|
|
|
|
in1.(*BandwidthSummaryRequest),
|
|
|
|
)
|
|
|
|
}, DRPCBandwidthServer.BandwidthSummary, true
|
|
|
|
case 3:
|
|
|
|
return "/multinode.Bandwidth/EgressSummarySatellite", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCBandwidthServer).
|
|
|
|
EgressSummarySatellite(
|
|
|
|
ctx,
|
|
|
|
in1.(*EgressSummarySatelliteRequest),
|
|
|
|
)
|
|
|
|
}, DRPCBandwidthServer.EgressSummarySatellite, true
|
|
|
|
case 4:
|
|
|
|
return "/multinode.Bandwidth/EgressSummary", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCBandwidthServer).
|
|
|
|
EgressSummary(
|
|
|
|
ctx,
|
|
|
|
in1.(*EgressSummaryRequest),
|
|
|
|
)
|
|
|
|
}, DRPCBandwidthServer.EgressSummary, true
|
|
|
|
case 5:
|
|
|
|
return "/multinode.Bandwidth/IngressSummarySatellite", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCBandwidthServer).
|
|
|
|
IngressSummarySatellite(
|
|
|
|
ctx,
|
|
|
|
in1.(*IngressSummarySatelliteRequest),
|
|
|
|
)
|
|
|
|
}, DRPCBandwidthServer.IngressSummarySatellite, true
|
|
|
|
case 6:
|
|
|
|
return "/multinode.Bandwidth/IngressSummary", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCBandwidthServer).
|
|
|
|
IngressSummary(
|
|
|
|
ctx,
|
|
|
|
in1.(*IngressSummaryRequest),
|
|
|
|
)
|
|
|
|
}, DRPCBandwidthServer.IngressSummary, true
|
|
|
|
case 7:
|
|
|
|
return "/multinode.Bandwidth/DailySatellite", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCBandwidthServer).
|
|
|
|
DailySatellite(
|
|
|
|
ctx,
|
|
|
|
in1.(*DailySatelliteRequest),
|
|
|
|
)
|
|
|
|
}, DRPCBandwidthServer.DailySatellite, true
|
|
|
|
case 8:
|
|
|
|
return "/multinode.Bandwidth/Daily", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCBandwidthServer).
|
|
|
|
Daily(
|
|
|
|
ctx,
|
|
|
|
in1.(*DailyRequest),
|
|
|
|
)
|
|
|
|
}, DRPCBandwidthServer.Daily, true
|
2021-03-23 10:41:41 +00:00
|
|
|
default:
|
|
|
|
return "", nil, nil, nil, false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func DRPCRegisterBandwidth(mux drpc.Mux, impl DRPCBandwidthServer) error {
|
|
|
|
return mux.Register(impl, DRPCBandwidthDescription{})
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCBandwidth_MonthSummaryStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*BandwidthMonthSummaryResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcBandwidth_MonthSummaryStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcBandwidth_MonthSummaryStream) SendAndClose(m *BandwidthMonthSummaryResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
2021-06-02 13:13:42 +01:00
|
|
|
type DRPCBandwidth_BandwidthSummarySatelliteStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*BandwidthSummarySatelliteResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcBandwidth_BandwidthSummarySatelliteStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcBandwidth_BandwidthSummarySatelliteStream) SendAndClose(m *BandwidthSummarySatelliteResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCBandwidth_BandwidthSummaryStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*BandwidthSummaryResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcBandwidth_BandwidthSummaryStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcBandwidth_BandwidthSummaryStream) SendAndClose(m *BandwidthSummaryResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCBandwidth_EgressSummarySatelliteStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*EgressSummarySatelliteResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcBandwidth_EgressSummarySatelliteStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcBandwidth_EgressSummarySatelliteStream) SendAndClose(m *EgressSummarySatelliteResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCBandwidth_EgressSummaryStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*EgressSummaryResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcBandwidth_EgressSummaryStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcBandwidth_EgressSummaryStream) SendAndClose(m *EgressSummaryResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCBandwidth_IngressSummarySatelliteStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*IngressSummarySatelliteResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcBandwidth_IngressSummarySatelliteStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcBandwidth_IngressSummarySatelliteStream) SendAndClose(m *IngressSummarySatelliteResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCBandwidth_IngressSummaryStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*IngressSummaryResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcBandwidth_IngressSummaryStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcBandwidth_IngressSummaryStream) SendAndClose(m *IngressSummaryResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCBandwidth_DailySatelliteStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*DailySatelliteResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcBandwidth_DailySatelliteStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcBandwidth_DailySatelliteStream) SendAndClose(m *DailySatelliteResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCBandwidth_DailyStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*DailyResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcBandwidth_DailyStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcBandwidth_DailyStream) SendAndClose(m *DailyResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
2021-03-23 10:41:41 +00:00
|
|
|
type DRPCNodeClient interface {
|
|
|
|
DRPCConn() drpc.Conn
|
|
|
|
|
|
|
|
Version(ctx context.Context, in *VersionRequest) (*VersionResponse, error)
|
|
|
|
LastContact(ctx context.Context, in *LastContactRequest) (*LastContactResponse, error)
|
|
|
|
Reputation(ctx context.Context, in *ReputationRequest) (*ReputationResponse, error)
|
|
|
|
TrustedSatellites(ctx context.Context, in *TrustedSatellitesRequest) (*TrustedSatellitesResponse, error)
|
2021-06-01 08:29:46 +01:00
|
|
|
Operator(ctx context.Context, in *OperatorRequest) (*OperatorResponse, error)
|
2021-03-23 10:41:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type drpcNodeClient struct {
|
|
|
|
cc drpc.Conn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewDRPCNodeClient(cc drpc.Conn) DRPCNodeClient {
|
|
|
|
return &drpcNodeClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcNodeClient) DRPCConn() drpc.Conn { return c.cc }
|
|
|
|
|
|
|
|
func (c *drpcNodeClient) Version(ctx context.Context, in *VersionRequest) (*VersionResponse, error) {
|
|
|
|
out := new(VersionResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Node/Version", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcNodeClient) LastContact(ctx context.Context, in *LastContactRequest) (*LastContactResponse, error) {
|
|
|
|
out := new(LastContactResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Node/LastContact", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcNodeClient) Reputation(ctx context.Context, in *ReputationRequest) (*ReputationResponse, error) {
|
|
|
|
out := new(ReputationResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Node/Reputation", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcNodeClient) TrustedSatellites(ctx context.Context, in *TrustedSatellitesRequest) (*TrustedSatellitesResponse, error) {
|
|
|
|
out := new(TrustedSatellitesResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Node/TrustedSatellites", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-06-01 08:29:46 +01:00
|
|
|
func (c *drpcNodeClient) Operator(ctx context.Context, in *OperatorRequest) (*OperatorResponse, error) {
|
|
|
|
out := new(OperatorResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Node/Operator", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-03-23 10:41:41 +00:00
|
|
|
type DRPCNodeServer interface {
|
|
|
|
Version(context.Context, *VersionRequest) (*VersionResponse, error)
|
|
|
|
LastContact(context.Context, *LastContactRequest) (*LastContactResponse, error)
|
|
|
|
Reputation(context.Context, *ReputationRequest) (*ReputationResponse, error)
|
|
|
|
TrustedSatellites(context.Context, *TrustedSatellitesRequest) (*TrustedSatellitesResponse, error)
|
2021-06-01 08:29:46 +01:00
|
|
|
Operator(context.Context, *OperatorRequest) (*OperatorResponse, error)
|
2021-03-23 10:41:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCNodeUnimplementedServer struct{}
|
|
|
|
|
|
|
|
func (s *DRPCNodeUnimplementedServer) Version(context.Context, *VersionRequest) (*VersionResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-03-23 10:41:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCNodeUnimplementedServer) LastContact(context.Context, *LastContactRequest) (*LastContactResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-03-23 10:41:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCNodeUnimplementedServer) Reputation(context.Context, *ReputationRequest) (*ReputationResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-03-23 10:41:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCNodeUnimplementedServer) TrustedSatellites(context.Context, *TrustedSatellitesRequest) (*TrustedSatellitesResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-03-23 10:41:41 +00:00
|
|
|
}
|
|
|
|
|
2021-06-01 08:29:46 +01:00
|
|
|
func (s *DRPCNodeUnimplementedServer) Operator(context.Context, *OperatorRequest) (*OperatorResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-01 08:29:46 +01:00
|
|
|
}
|
|
|
|
|
2021-03-23 10:41:41 +00:00
|
|
|
type DRPCNodeDescription struct{}
|
|
|
|
|
2021-06-01 08:29:46 +01:00
|
|
|
func (DRPCNodeDescription) NumMethods() int { return 5 }
|
2021-03-23 10:41:41 +00:00
|
|
|
|
|
|
|
func (DRPCNodeDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool) {
|
|
|
|
switch n {
|
|
|
|
case 0:
|
|
|
|
return "/multinode.Node/Version", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCNodeServer).
|
|
|
|
Version(
|
|
|
|
ctx,
|
|
|
|
in1.(*VersionRequest),
|
|
|
|
)
|
|
|
|
}, DRPCNodeServer.Version, true
|
|
|
|
case 1:
|
|
|
|
return "/multinode.Node/LastContact", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCNodeServer).
|
|
|
|
LastContact(
|
|
|
|
ctx,
|
|
|
|
in1.(*LastContactRequest),
|
|
|
|
)
|
|
|
|
}, DRPCNodeServer.LastContact, true
|
|
|
|
case 2:
|
|
|
|
return "/multinode.Node/Reputation", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCNodeServer).
|
|
|
|
Reputation(
|
|
|
|
ctx,
|
|
|
|
in1.(*ReputationRequest),
|
|
|
|
)
|
|
|
|
}, DRPCNodeServer.Reputation, true
|
|
|
|
case 3:
|
|
|
|
return "/multinode.Node/TrustedSatellites", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCNodeServer).
|
|
|
|
TrustedSatellites(
|
|
|
|
ctx,
|
|
|
|
in1.(*TrustedSatellitesRequest),
|
|
|
|
)
|
|
|
|
}, DRPCNodeServer.TrustedSatellites, true
|
2021-06-01 08:29:46 +01:00
|
|
|
case 4:
|
|
|
|
return "/multinode.Node/Operator", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCNodeServer).
|
|
|
|
Operator(
|
|
|
|
ctx,
|
|
|
|
in1.(*OperatorRequest),
|
|
|
|
)
|
|
|
|
}, DRPCNodeServer.Operator, true
|
2021-03-23 10:41:41 +00:00
|
|
|
default:
|
|
|
|
return "", nil, nil, nil, false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func DRPCRegisterNode(mux drpc.Mux, impl DRPCNodeServer) error {
|
|
|
|
return mux.Register(impl, DRPCNodeDescription{})
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCNode_VersionStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*VersionResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcNode_VersionStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcNode_VersionStream) SendAndClose(m *VersionResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCNode_LastContactStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*LastContactResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcNode_LastContactStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcNode_LastContactStream) SendAndClose(m *LastContactResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCNode_ReputationStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*ReputationResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcNode_ReputationStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcNode_ReputationStream) SendAndClose(m *ReputationResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCNode_TrustedSatellitesStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*TrustedSatellitesResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcNode_TrustedSatellitesStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcNode_TrustedSatellitesStream) SendAndClose(m *TrustedSatellitesResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
2021-06-01 08:29:46 +01:00
|
|
|
type DRPCNode_OperatorStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*OperatorResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcNode_OperatorStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcNode_OperatorStream) SendAndClose(m *OperatorResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type DRPCPayoutsClient interface {
|
2021-03-23 10:41:41 +00:00
|
|
|
DRPCConn() drpc.Conn
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
Summary(ctx context.Context, in *SummaryRequest) (*SummaryResponse, error)
|
|
|
|
SummaryPeriod(ctx context.Context, in *SummaryPeriodRequest) (*SummaryPeriodResponse, error)
|
|
|
|
SummarySatellite(ctx context.Context, in *SummarySatelliteRequest) (*SummarySatelliteResponse, error)
|
|
|
|
SummarySatellitePeriod(ctx context.Context, in *SummarySatellitePeriodRequest) (*SummarySatellitePeriodResponse, error)
|
2021-03-23 10:41:41 +00:00
|
|
|
Earned(ctx context.Context, in *EarnedRequest) (*EarnedResponse, error)
|
2021-05-25 17:48:45 +01:00
|
|
|
EarnedSatellite(ctx context.Context, in *EarnedSatelliteRequest) (*EarnedSatelliteResponse, error)
|
2021-05-05 18:10:58 +01:00
|
|
|
EstimatedPayoutSatellite(ctx context.Context, in *EstimatedPayoutSatelliteRequest) (*EstimatedPayoutSatelliteResponse, error)
|
2021-05-25 17:48:45 +01:00
|
|
|
EstimatedPayout(ctx context.Context, in *EstimatedPayoutRequest) (*EstimatedPayoutResponse, error)
|
2021-05-14 23:03:38 +01:00
|
|
|
Undistributed(ctx context.Context, in *UndistributedRequest) (*UndistributedResponse, error)
|
2021-05-25 17:48:45 +01:00
|
|
|
PaystubSatellite(ctx context.Context, in *PaystubSatelliteRequest) (*PaystubSatelliteResponse, error)
|
2021-05-25 13:02:20 +01:00
|
|
|
Paystub(ctx context.Context, in *PaystubRequest) (*PaystubResponse, error)
|
2021-05-25 17:48:45 +01:00
|
|
|
PaystubPeriod(ctx context.Context, in *PaystubPeriodRequest) (*PaystubPeriodResponse, error)
|
|
|
|
PaystubSatellitePeriod(ctx context.Context, in *PaystubSatellitePeriodRequest) (*PaystubSatellitePeriodResponse, error)
|
2021-04-22 19:50:42 +01:00
|
|
|
HeldAmountHistory(ctx context.Context, in *HeldAmountHistoryRequest) (*HeldAmountHistoryResponse, error)
|
2021-03-23 10:41:41 +00:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type drpcPayoutsClient struct {
|
2021-03-23 10:41:41 +00:00
|
|
|
cc drpc.Conn
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func NewDRPCPayoutsClient(cc drpc.Conn) DRPCPayoutsClient {
|
|
|
|
return &drpcPayoutsClient{cc}
|
2021-03-23 10:41:41 +00:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (c *drpcPayoutsClient) DRPCConn() drpc.Conn { return c.cc }
|
2021-03-23 10:41:41 +00:00
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (c *drpcPayoutsClient) Summary(ctx context.Context, in *SummaryRequest) (*SummaryResponse, error) {
|
|
|
|
out := new(SummaryResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payouts/Summary", drpcEncoding_File_multinode_proto{}, in, out)
|
2021-05-05 18:34:10 +01:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (c *drpcPayoutsClient) SummaryPeriod(ctx context.Context, in *SummaryPeriodRequest) (*SummaryPeriodResponse, error) {
|
|
|
|
out := new(SummaryPeriodResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payouts/SummaryPeriod", drpcEncoding_File_multinode_proto{}, in, out)
|
2021-05-05 18:34:10 +01:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (c *drpcPayoutsClient) SummarySatellite(ctx context.Context, in *SummarySatelliteRequest) (*SummarySatelliteResponse, error) {
|
|
|
|
out := new(SummarySatelliteResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payouts/SummarySatellite", drpcEncoding_File_multinode_proto{}, in, out)
|
2021-05-05 21:01:16 +01:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (c *drpcPayoutsClient) SummarySatellitePeriod(ctx context.Context, in *SummarySatellitePeriodRequest) (*SummarySatellitePeriodResponse, error) {
|
|
|
|
out := new(SummarySatellitePeriodResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payouts/SummarySatellitePeriod", drpcEncoding_File_multinode_proto{}, in, out)
|
2021-05-05 21:01:16 +01:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (c *drpcPayoutsClient) Earned(ctx context.Context, in *EarnedRequest) (*EarnedResponse, error) {
|
2021-03-23 10:41:41 +00:00
|
|
|
out := new(EarnedResponse)
|
2021-05-25 17:48:45 +01:00
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payouts/Earned", drpcEncoding_File_multinode_proto{}, in, out)
|
2021-03-23 10:41:41 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (c *drpcPayoutsClient) EarnedSatellite(ctx context.Context, in *EarnedSatelliteRequest) (*EarnedSatelliteResponse, error) {
|
|
|
|
out := new(EarnedSatelliteResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payouts/EarnedSatellite", drpcEncoding_File_multinode_proto{}, in, out)
|
2021-03-23 10:41:41 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (c *drpcPayoutsClient) EstimatedPayoutSatellite(ctx context.Context, in *EstimatedPayoutSatelliteRequest) (*EstimatedPayoutSatelliteResponse, error) {
|
2021-05-05 18:10:58 +01:00
|
|
|
out := new(EstimatedPayoutSatelliteResponse)
|
2021-05-25 17:48:45 +01:00
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payouts/EstimatedPayoutSatellite", drpcEncoding_File_multinode_proto{}, in, out)
|
2021-05-05 18:10:58 +01:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (c *drpcPayoutsClient) EstimatedPayout(ctx context.Context, in *EstimatedPayoutRequest) (*EstimatedPayoutResponse, error) {
|
|
|
|
out := new(EstimatedPayoutResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payouts/EstimatedPayout", drpcEncoding_File_multinode_proto{}, in, out)
|
2021-05-05 18:10:58 +01:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (c *drpcPayoutsClient) Undistributed(ctx context.Context, in *UndistributedRequest) (*UndistributedResponse, error) {
|
2021-05-14 23:03:38 +01:00
|
|
|
out := new(UndistributedResponse)
|
2021-05-25 17:48:45 +01:00
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payouts/Undistributed", drpcEncoding_File_multinode_proto{}, in, out)
|
2021-05-14 23:03:38 +01:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (c *drpcPayoutsClient) PaystubSatellite(ctx context.Context, in *PaystubSatelliteRequest) (*PaystubSatelliteResponse, error) {
|
|
|
|
out := new(PaystubSatelliteResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payouts/PaystubSatellite", drpcEncoding_File_multinode_proto{}, in, out)
|
2021-05-25 13:02:20 +01:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (c *drpcPayoutsClient) Paystub(ctx context.Context, in *PaystubRequest) (*PaystubResponse, error) {
|
2021-05-25 13:02:20 +01:00
|
|
|
out := new(PaystubResponse)
|
2021-05-25 17:48:45 +01:00
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payouts/Paystub", drpcEncoding_File_multinode_proto{}, in, out)
|
2021-05-25 13:02:20 +01:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (c *drpcPayoutsClient) PaystubPeriod(ctx context.Context, in *PaystubPeriodRequest) (*PaystubPeriodResponse, error) {
|
|
|
|
out := new(PaystubPeriodResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payouts/PaystubPeriod", drpcEncoding_File_multinode_proto{}, in, out)
|
2021-05-24 21:40:31 +01:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (c *drpcPayoutsClient) PaystubSatellitePeriod(ctx context.Context, in *PaystubSatellitePeriodRequest) (*PaystubSatellitePeriodResponse, error) {
|
|
|
|
out := new(PaystubSatellitePeriodResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payouts/PaystubSatellitePeriod", drpcEncoding_File_multinode_proto{}, in, out)
|
2021-05-24 21:40:31 +01:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (c *drpcPayoutsClient) HeldAmountHistory(ctx context.Context, in *HeldAmountHistoryRequest) (*HeldAmountHistoryResponse, error) {
|
2021-04-22 19:50:42 +01:00
|
|
|
out := new(HeldAmountHistoryResponse)
|
2021-05-25 17:48:45 +01:00
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payouts/HeldAmountHistory", drpcEncoding_File_multinode_proto{}, in, out)
|
2021-04-22 19:50:42 +01:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type DRPCPayoutsServer interface {
|
|
|
|
Summary(context.Context, *SummaryRequest) (*SummaryResponse, error)
|
|
|
|
SummaryPeriod(context.Context, *SummaryPeriodRequest) (*SummaryPeriodResponse, error)
|
|
|
|
SummarySatellite(context.Context, *SummarySatelliteRequest) (*SummarySatelliteResponse, error)
|
|
|
|
SummarySatellitePeriod(context.Context, *SummarySatellitePeriodRequest) (*SummarySatellitePeriodResponse, error)
|
2021-03-23 10:41:41 +00:00
|
|
|
Earned(context.Context, *EarnedRequest) (*EarnedResponse, error)
|
2021-05-25 17:48:45 +01:00
|
|
|
EarnedSatellite(context.Context, *EarnedSatelliteRequest) (*EarnedSatelliteResponse, error)
|
2021-05-05 18:10:58 +01:00
|
|
|
EstimatedPayoutSatellite(context.Context, *EstimatedPayoutSatelliteRequest) (*EstimatedPayoutSatelliteResponse, error)
|
2021-05-25 17:48:45 +01:00
|
|
|
EstimatedPayout(context.Context, *EstimatedPayoutRequest) (*EstimatedPayoutResponse, error)
|
2021-05-14 23:03:38 +01:00
|
|
|
Undistributed(context.Context, *UndistributedRequest) (*UndistributedResponse, error)
|
2021-05-25 17:48:45 +01:00
|
|
|
PaystubSatellite(context.Context, *PaystubSatelliteRequest) (*PaystubSatelliteResponse, error)
|
2021-05-25 13:02:20 +01:00
|
|
|
Paystub(context.Context, *PaystubRequest) (*PaystubResponse, error)
|
2021-05-25 17:48:45 +01:00
|
|
|
PaystubPeriod(context.Context, *PaystubPeriodRequest) (*PaystubPeriodResponse, error)
|
|
|
|
PaystubSatellitePeriod(context.Context, *PaystubSatellitePeriodRequest) (*PaystubSatellitePeriodResponse, error)
|
2021-04-22 19:50:42 +01:00
|
|
|
HeldAmountHistory(context.Context, *HeldAmountHistoryRequest) (*HeldAmountHistoryResponse, error)
|
2021-03-23 10:41:41 +00:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type DRPCPayoutsUnimplementedServer struct{}
|
2021-03-23 10:41:41 +00:00
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) Summary(context.Context, *SummaryRequest) (*SummaryResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-05-05 18:34:10 +01:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) SummaryPeriod(context.Context, *SummaryPeriodRequest) (*SummaryPeriodResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-05-05 18:34:10 +01:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) SummarySatellite(context.Context, *SummarySatelliteRequest) (*SummarySatelliteResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-05-05 21:01:16 +01:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) SummarySatellitePeriod(context.Context, *SummarySatellitePeriodRequest) (*SummarySatellitePeriodResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-05-05 21:01:16 +01:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) Earned(context.Context, *EarnedRequest) (*EarnedResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-03-23 10:41:41 +00:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) EarnedSatellite(context.Context, *EarnedSatelliteRequest) (*EarnedSatelliteResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-03-23 10:41:41 +00:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) EstimatedPayoutSatellite(context.Context, *EstimatedPayoutSatelliteRequest) (*EstimatedPayoutSatelliteResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-05-05 18:10:58 +01:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) EstimatedPayout(context.Context, *EstimatedPayoutRequest) (*EstimatedPayoutResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-05-05 18:10:58 +01:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) Undistributed(context.Context, *UndistributedRequest) (*UndistributedResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-05-14 23:03:38 +01:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) PaystubSatellite(context.Context, *PaystubSatelliteRequest) (*PaystubSatelliteResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-05-25 13:02:20 +01:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) Paystub(context.Context, *PaystubRequest) (*PaystubResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-05-25 13:02:20 +01:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) PaystubPeriod(context.Context, *PaystubPeriodRequest) (*PaystubPeriodResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-05-24 21:40:31 +01:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) PaystubSatellitePeriod(context.Context, *PaystubSatellitePeriodRequest) (*PaystubSatellitePeriodResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-05-24 21:40:31 +01:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) HeldAmountHistory(context.Context, *HeldAmountHistoryRequest) (*HeldAmountHistoryResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-04-22 19:50:42 +01:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type DRPCPayoutsDescription struct{}
|
2021-03-23 10:41:41 +00:00
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (DRPCPayoutsDescription) NumMethods() int { return 14 }
|
2021-03-23 10:41:41 +00:00
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (DRPCPayoutsDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool) {
|
2021-03-23 10:41:41 +00:00
|
|
|
switch n {
|
|
|
|
case 0:
|
2021-05-25 17:48:45 +01:00
|
|
|
return "/multinode.Payouts/Summary", drpcEncoding_File_multinode_proto{},
|
2021-05-05 18:34:10 +01:00
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
2021-05-25 17:48:45 +01:00
|
|
|
return srv.(DRPCPayoutsServer).
|
|
|
|
Summary(
|
2021-05-05 18:34:10 +01:00
|
|
|
ctx,
|
2021-05-25 17:48:45 +01:00
|
|
|
in1.(*SummaryRequest),
|
2021-05-05 18:34:10 +01:00
|
|
|
)
|
2021-05-25 17:48:45 +01:00
|
|
|
}, DRPCPayoutsServer.Summary, true
|
2021-05-05 18:34:10 +01:00
|
|
|
case 1:
|
2021-05-25 17:48:45 +01:00
|
|
|
return "/multinode.Payouts/SummaryPeriod", drpcEncoding_File_multinode_proto{},
|
2021-05-05 18:34:10 +01:00
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
2021-05-25 17:48:45 +01:00
|
|
|
return srv.(DRPCPayoutsServer).
|
|
|
|
SummaryPeriod(
|
2021-05-05 18:34:10 +01:00
|
|
|
ctx,
|
2021-05-25 17:48:45 +01:00
|
|
|
in1.(*SummaryPeriodRequest),
|
2021-05-05 18:34:10 +01:00
|
|
|
)
|
2021-05-25 17:48:45 +01:00
|
|
|
}, DRPCPayoutsServer.SummaryPeriod, true
|
2021-05-05 18:34:10 +01:00
|
|
|
case 2:
|
2021-05-25 17:48:45 +01:00
|
|
|
return "/multinode.Payouts/SummarySatellite", drpcEncoding_File_multinode_proto{},
|
2021-05-05 21:01:16 +01:00
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
2021-05-25 17:48:45 +01:00
|
|
|
return srv.(DRPCPayoutsServer).
|
|
|
|
SummarySatellite(
|
2021-05-05 21:01:16 +01:00
|
|
|
ctx,
|
2021-05-25 17:48:45 +01:00
|
|
|
in1.(*SummarySatelliteRequest),
|
2021-05-05 21:01:16 +01:00
|
|
|
)
|
2021-05-25 17:48:45 +01:00
|
|
|
}, DRPCPayoutsServer.SummarySatellite, true
|
2021-05-05 21:01:16 +01:00
|
|
|
case 3:
|
2021-05-25 17:48:45 +01:00
|
|
|
return "/multinode.Payouts/SummarySatellitePeriod", drpcEncoding_File_multinode_proto{},
|
2021-05-05 21:01:16 +01:00
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
2021-05-25 17:48:45 +01:00
|
|
|
return srv.(DRPCPayoutsServer).
|
|
|
|
SummarySatellitePeriod(
|
2021-05-05 21:01:16 +01:00
|
|
|
ctx,
|
2021-05-25 17:48:45 +01:00
|
|
|
in1.(*SummarySatellitePeriodRequest),
|
2021-05-05 21:01:16 +01:00
|
|
|
)
|
2021-05-25 17:48:45 +01:00
|
|
|
}, DRPCPayoutsServer.SummarySatellitePeriod, true
|
2021-05-05 21:01:16 +01:00
|
|
|
case 4:
|
2021-05-25 17:48:45 +01:00
|
|
|
return "/multinode.Payouts/Earned", drpcEncoding_File_multinode_proto{},
|
2021-03-23 10:41:41 +00:00
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
2021-05-25 17:48:45 +01:00
|
|
|
return srv.(DRPCPayoutsServer).
|
2021-03-23 10:41:41 +00:00
|
|
|
Earned(
|
|
|
|
ctx,
|
|
|
|
in1.(*EarnedRequest),
|
|
|
|
)
|
2021-05-25 17:48:45 +01:00
|
|
|
}, DRPCPayoutsServer.Earned, true
|
2021-05-05 21:01:16 +01:00
|
|
|
case 5:
|
2021-05-25 17:48:45 +01:00
|
|
|
return "/multinode.Payouts/EarnedSatellite", drpcEncoding_File_multinode_proto{},
|
2021-03-23 10:41:41 +00:00
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
2021-05-25 17:48:45 +01:00
|
|
|
return srv.(DRPCPayoutsServer).
|
|
|
|
EarnedSatellite(
|
2021-03-23 10:41:41 +00:00
|
|
|
ctx,
|
2021-05-25 17:48:45 +01:00
|
|
|
in1.(*EarnedSatelliteRequest),
|
2021-03-23 10:41:41 +00:00
|
|
|
)
|
2021-05-25 17:48:45 +01:00
|
|
|
}, DRPCPayoutsServer.EarnedSatellite, true
|
2021-05-05 21:01:16 +01:00
|
|
|
case 6:
|
2021-05-25 17:48:45 +01:00
|
|
|
return "/multinode.Payouts/EstimatedPayoutSatellite", drpcEncoding_File_multinode_proto{},
|
2021-05-05 18:10:58 +01:00
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
2021-05-25 17:48:45 +01:00
|
|
|
return srv.(DRPCPayoutsServer).
|
2021-05-05 18:10:58 +01:00
|
|
|
EstimatedPayoutSatellite(
|
|
|
|
ctx,
|
|
|
|
in1.(*EstimatedPayoutSatelliteRequest),
|
|
|
|
)
|
2021-05-25 17:48:45 +01:00
|
|
|
}, DRPCPayoutsServer.EstimatedPayoutSatellite, true
|
2021-05-05 21:01:16 +01:00
|
|
|
case 7:
|
2021-05-25 17:48:45 +01:00
|
|
|
return "/multinode.Payouts/EstimatedPayout", drpcEncoding_File_multinode_proto{},
|
2021-05-05 18:10:58 +01:00
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
2021-05-25 17:48:45 +01:00
|
|
|
return srv.(DRPCPayoutsServer).
|
|
|
|
EstimatedPayout(
|
2021-05-05 18:10:58 +01:00
|
|
|
ctx,
|
2021-05-25 17:48:45 +01:00
|
|
|
in1.(*EstimatedPayoutRequest),
|
2021-05-05 18:10:58 +01:00
|
|
|
)
|
2021-05-25 17:48:45 +01:00
|
|
|
}, DRPCPayoutsServer.EstimatedPayout, true
|
2021-05-14 23:03:38 +01:00
|
|
|
case 8:
|
2021-05-25 17:48:45 +01:00
|
|
|
return "/multinode.Payouts/Undistributed", drpcEncoding_File_multinode_proto{},
|
2021-05-14 23:03:38 +01:00
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
2021-05-25 17:48:45 +01:00
|
|
|
return srv.(DRPCPayoutsServer).
|
2021-05-14 23:03:38 +01:00
|
|
|
Undistributed(
|
|
|
|
ctx,
|
|
|
|
in1.(*UndistributedRequest),
|
|
|
|
)
|
2021-05-25 17:48:45 +01:00
|
|
|
}, DRPCPayoutsServer.Undistributed, true
|
2021-05-25 13:02:20 +01:00
|
|
|
case 9:
|
2021-05-25 17:48:45 +01:00
|
|
|
return "/multinode.Payouts/PaystubSatellite", drpcEncoding_File_multinode_proto{},
|
2021-05-25 13:02:20 +01:00
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
2021-05-25 17:48:45 +01:00
|
|
|
return srv.(DRPCPayoutsServer).
|
|
|
|
PaystubSatellite(
|
2021-05-25 13:02:20 +01:00
|
|
|
ctx,
|
2021-05-25 17:48:45 +01:00
|
|
|
in1.(*PaystubSatelliteRequest),
|
2021-05-25 13:02:20 +01:00
|
|
|
)
|
2021-05-25 17:48:45 +01:00
|
|
|
}, DRPCPayoutsServer.PaystubSatellite, true
|
2021-05-25 13:02:20 +01:00
|
|
|
case 10:
|
2021-05-25 17:48:45 +01:00
|
|
|
return "/multinode.Payouts/Paystub", drpcEncoding_File_multinode_proto{},
|
2021-05-25 13:02:20 +01:00
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
2021-05-25 17:48:45 +01:00
|
|
|
return srv.(DRPCPayoutsServer).
|
2021-05-25 13:02:20 +01:00
|
|
|
Paystub(
|
|
|
|
ctx,
|
|
|
|
in1.(*PaystubRequest),
|
|
|
|
)
|
2021-05-25 17:48:45 +01:00
|
|
|
}, DRPCPayoutsServer.Paystub, true
|
2021-05-24 21:40:31 +01:00
|
|
|
case 11:
|
2021-05-25 17:48:45 +01:00
|
|
|
return "/multinode.Payouts/PaystubPeriod", drpcEncoding_File_multinode_proto{},
|
2021-05-24 21:40:31 +01:00
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
2021-05-25 17:48:45 +01:00
|
|
|
return srv.(DRPCPayoutsServer).
|
|
|
|
PaystubPeriod(
|
2021-05-24 21:40:31 +01:00
|
|
|
ctx,
|
2021-05-25 17:48:45 +01:00
|
|
|
in1.(*PaystubPeriodRequest),
|
2021-05-24 21:40:31 +01:00
|
|
|
)
|
2021-05-25 17:48:45 +01:00
|
|
|
}, DRPCPayoutsServer.PaystubPeriod, true
|
2021-05-24 21:40:31 +01:00
|
|
|
case 12:
|
2021-05-25 17:48:45 +01:00
|
|
|
return "/multinode.Payouts/PaystubSatellitePeriod", drpcEncoding_File_multinode_proto{},
|
2021-05-24 21:40:31 +01:00
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
2021-05-25 17:48:45 +01:00
|
|
|
return srv.(DRPCPayoutsServer).
|
|
|
|
PaystubSatellitePeriod(
|
2021-05-24 21:40:31 +01:00
|
|
|
ctx,
|
2021-05-25 17:48:45 +01:00
|
|
|
in1.(*PaystubSatellitePeriodRequest),
|
2021-05-24 21:40:31 +01:00
|
|
|
)
|
2021-05-25 17:48:45 +01:00
|
|
|
}, DRPCPayoutsServer.PaystubSatellitePeriod, true
|
2021-04-22 19:50:42 +01:00
|
|
|
case 13:
|
2021-05-25 17:48:45 +01:00
|
|
|
return "/multinode.Payouts/HeldAmountHistory", drpcEncoding_File_multinode_proto{},
|
2021-04-22 19:50:42 +01:00
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
2021-05-25 17:48:45 +01:00
|
|
|
return srv.(DRPCPayoutsServer).
|
2021-04-22 19:50:42 +01:00
|
|
|
HeldAmountHistory(
|
|
|
|
ctx,
|
|
|
|
in1.(*HeldAmountHistoryRequest),
|
|
|
|
)
|
2021-05-25 17:48:45 +01:00
|
|
|
}, DRPCPayoutsServer.HeldAmountHistory, true
|
2021-03-23 10:41:41 +00:00
|
|
|
default:
|
|
|
|
return "", nil, nil, nil, false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func DRPCRegisterPayouts(mux drpc.Mux, impl DRPCPayoutsServer) error {
|
|
|
|
return mux.Register(impl, DRPCPayoutsDescription{})
|
2021-03-23 10:41:41 +00:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type DRPCPayouts_SummaryStream interface {
|
2021-05-05 18:34:10 +01:00
|
|
|
drpc.Stream
|
2021-05-25 17:48:45 +01:00
|
|
|
SendAndClose(*SummaryResponse) error
|
2021-05-05 18:34:10 +01:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type drpcPayouts_SummaryStream struct {
|
2021-05-05 18:34:10 +01:00
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (x *drpcPayouts_SummaryStream) SendAndClose(m *SummaryResponse) error {
|
2021-05-05 18:34:10 +01:00
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type DRPCPayouts_SummaryPeriodStream interface {
|
2021-05-05 18:34:10 +01:00
|
|
|
drpc.Stream
|
2021-05-25 17:48:45 +01:00
|
|
|
SendAndClose(*SummaryPeriodResponse) error
|
2021-05-05 18:34:10 +01:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type drpcPayouts_SummaryPeriodStream struct {
|
2021-05-05 18:34:10 +01:00
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (x *drpcPayouts_SummaryPeriodStream) SendAndClose(m *SummaryPeriodResponse) error {
|
2021-05-05 18:34:10 +01:00
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type DRPCPayouts_SummarySatelliteStream interface {
|
2021-05-05 21:01:16 +01:00
|
|
|
drpc.Stream
|
2021-05-25 17:48:45 +01:00
|
|
|
SendAndClose(*SummarySatelliteResponse) error
|
2021-05-05 21:01:16 +01:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type drpcPayouts_SummarySatelliteStream struct {
|
2021-05-05 21:01:16 +01:00
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (x *drpcPayouts_SummarySatelliteStream) SendAndClose(m *SummarySatelliteResponse) error {
|
2021-05-05 21:01:16 +01:00
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type DRPCPayouts_SummarySatellitePeriodStream interface {
|
2021-05-05 21:01:16 +01:00
|
|
|
drpc.Stream
|
2021-05-25 17:48:45 +01:00
|
|
|
SendAndClose(*SummarySatellitePeriodResponse) error
|
2021-05-05 21:01:16 +01:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type drpcPayouts_SummarySatellitePeriodStream struct {
|
2021-05-05 21:01:16 +01:00
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (x *drpcPayouts_SummarySatellitePeriodStream) SendAndClose(m *SummarySatellitePeriodResponse) error {
|
2021-05-05 21:01:16 +01:00
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type DRPCPayouts_EarnedStream interface {
|
2021-03-23 10:41:41 +00:00
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*EarnedResponse) error
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type drpcPayouts_EarnedStream struct {
|
2021-03-23 10:41:41 +00:00
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (x *drpcPayouts_EarnedStream) SendAndClose(m *EarnedResponse) error {
|
2021-03-23 10:41:41 +00:00
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type DRPCPayouts_EarnedSatelliteStream interface {
|
2021-03-23 10:41:41 +00:00
|
|
|
drpc.Stream
|
2021-05-25 17:48:45 +01:00
|
|
|
SendAndClose(*EarnedSatelliteResponse) error
|
2021-03-23 10:41:41 +00:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type drpcPayouts_EarnedSatelliteStream struct {
|
2021-03-23 10:41:41 +00:00
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (x *drpcPayouts_EarnedSatelliteStream) SendAndClose(m *EarnedSatelliteResponse) error {
|
2021-03-23 10:41:41 +00:00
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
2021-05-05 18:10:58 +01:00
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type DRPCPayouts_EstimatedPayoutSatelliteStream interface {
|
2021-05-05 18:10:58 +01:00
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*EstimatedPayoutSatelliteResponse) error
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type drpcPayouts_EstimatedPayoutSatelliteStream struct {
|
2021-05-05 18:10:58 +01:00
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (x *drpcPayouts_EstimatedPayoutSatelliteStream) SendAndClose(m *EstimatedPayoutSatelliteResponse) error {
|
2021-05-05 18:10:58 +01:00
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type DRPCPayouts_EstimatedPayoutStream interface {
|
2021-05-05 18:10:58 +01:00
|
|
|
drpc.Stream
|
2021-05-25 17:48:45 +01:00
|
|
|
SendAndClose(*EstimatedPayoutResponse) error
|
2021-05-05 18:10:58 +01:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type drpcPayouts_EstimatedPayoutStream struct {
|
2021-05-05 18:10:58 +01:00
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (x *drpcPayouts_EstimatedPayoutStream) SendAndClose(m *EstimatedPayoutResponse) error {
|
2021-05-05 18:10:58 +01:00
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
2021-05-14 23:03:38 +01:00
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type DRPCPayouts_UndistributedStream interface {
|
2021-05-14 23:03:38 +01:00
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*UndistributedResponse) error
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type drpcPayouts_UndistributedStream struct {
|
2021-05-14 23:03:38 +01:00
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (x *drpcPayouts_UndistributedStream) SendAndClose(m *UndistributedResponse) error {
|
2021-05-14 23:03:38 +01:00
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
2021-05-25 13:02:20 +01:00
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type DRPCPayouts_PaystubSatelliteStream interface {
|
2021-05-25 13:02:20 +01:00
|
|
|
drpc.Stream
|
2021-05-25 17:48:45 +01:00
|
|
|
SendAndClose(*PaystubSatelliteResponse) error
|
2021-05-25 13:02:20 +01:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type drpcPayouts_PaystubSatelliteStream struct {
|
2021-05-25 13:02:20 +01:00
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (x *drpcPayouts_PaystubSatelliteStream) SendAndClose(m *PaystubSatelliteResponse) error {
|
2021-05-25 13:02:20 +01:00
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type DRPCPayouts_PaystubStream interface {
|
2021-05-25 13:02:20 +01:00
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*PaystubResponse) error
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type drpcPayouts_PaystubStream struct {
|
2021-05-25 13:02:20 +01:00
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (x *drpcPayouts_PaystubStream) SendAndClose(m *PaystubResponse) error {
|
2021-05-25 13:02:20 +01:00
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
2021-05-24 21:40:31 +01:00
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type DRPCPayouts_PaystubPeriodStream interface {
|
2021-05-24 21:40:31 +01:00
|
|
|
drpc.Stream
|
2021-05-25 17:48:45 +01:00
|
|
|
SendAndClose(*PaystubPeriodResponse) error
|
2021-05-24 21:40:31 +01:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type drpcPayouts_PaystubPeriodStream struct {
|
2021-05-24 21:40:31 +01:00
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (x *drpcPayouts_PaystubPeriodStream) SendAndClose(m *PaystubPeriodResponse) error {
|
2021-05-24 21:40:31 +01:00
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type DRPCPayouts_PaystubSatellitePeriodStream interface {
|
2021-05-24 21:40:31 +01:00
|
|
|
drpc.Stream
|
2021-05-25 17:48:45 +01:00
|
|
|
SendAndClose(*PaystubSatellitePeriodResponse) error
|
2021-05-24 21:40:31 +01:00
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type drpcPayouts_PaystubSatellitePeriodStream struct {
|
2021-05-24 21:40:31 +01:00
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (x *drpcPayouts_PaystubSatellitePeriodStream) SendAndClose(m *PaystubSatellitePeriodResponse) error {
|
2021-05-24 21:40:31 +01:00
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
2021-04-22 19:50:42 +01:00
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type DRPCPayouts_HeldAmountHistoryStream interface {
|
2021-04-22 19:50:42 +01:00
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*HeldAmountHistoryResponse) error
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
type drpcPayouts_HeldAmountHistoryStream struct {
|
2021-04-22 19:50:42 +01:00
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (x *drpcPayouts_HeldAmountHistoryStream) SendAndClose(m *HeldAmountHistoryResponse) error {
|
2021-04-22 19:50:42 +01:00
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
2021-06-16 17:46:25 +01:00
|
|
|
|
|
|
|
type DRPCPayoutClient interface {
|
|
|
|
DRPCConn() drpc.Conn
|
|
|
|
|
|
|
|
AllSatellitesSummary(ctx context.Context, in *AllSatellitesSummaryRequest) (*AllSatellitesSummaryResponse, error)
|
|
|
|
AllSatellitesPeriodSummary(ctx context.Context, in *AllSatellitesPeriodSummaryRequest) (*AllSatellitesPeriodSummaryResponse, error)
|
|
|
|
SatelliteSummary(ctx context.Context, in *SatelliteSummaryRequest) (*SatelliteSummaryResponse, error)
|
|
|
|
SatellitePeriodSummary(ctx context.Context, in *SatellitePeriodSummaryRequest) (*SatellitePeriodSummaryResponse, error)
|
|
|
|
Earned(ctx context.Context, in *EarnedRequest) (*EarnedResponse, error)
|
|
|
|
EarnedPerSatellite(ctx context.Context, in *EarnedPerSatelliteRequest) (*EarnedPerSatelliteResponse, error)
|
|
|
|
EstimatedPayoutSatellite(ctx context.Context, in *EstimatedPayoutSatelliteRequest) (*EstimatedPayoutSatelliteResponse, error)
|
|
|
|
EstimatedPayoutTotal(ctx context.Context, in *EstimatedPayoutTotalRequest) (*EstimatedPayoutTotalResponse, error)
|
|
|
|
Undistributed(ctx context.Context, in *UndistributedRequest) (*UndistributedResponse, error)
|
|
|
|
SatellitePaystub(ctx context.Context, in *SatellitePaystubRequest) (*SatellitePaystubResponse, error)
|
|
|
|
Paystub(ctx context.Context, in *PaystubRequest) (*PaystubResponse, error)
|
|
|
|
PeriodPaystub(ctx context.Context, in *PeriodPaystubRequest) (*PeriodPaystubResponse, error)
|
|
|
|
SatellitePeriodPaystub(ctx context.Context, in *SatellitePeriodPaystubRequest) (*SatellitePeriodPaystubResponse, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcPayoutClient struct {
|
|
|
|
cc drpc.Conn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewDRPCPayoutClient(cc drpc.Conn) DRPCPayoutClient {
|
|
|
|
return &drpcPayoutClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcPayoutClient) DRPCConn() drpc.Conn { return c.cc }
|
|
|
|
|
|
|
|
func (c *drpcPayoutClient) AllSatellitesSummary(ctx context.Context, in *AllSatellitesSummaryRequest) (*AllSatellitesSummaryResponse, error) {
|
|
|
|
out := new(AllSatellitesSummaryResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payout/AllSatellitesSummary", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcPayoutClient) AllSatellitesPeriodSummary(ctx context.Context, in *AllSatellitesPeriodSummaryRequest) (*AllSatellitesPeriodSummaryResponse, error) {
|
|
|
|
out := new(AllSatellitesPeriodSummaryResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payout/AllSatellitesPeriodSummary", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcPayoutClient) SatelliteSummary(ctx context.Context, in *SatelliteSummaryRequest) (*SatelliteSummaryResponse, error) {
|
|
|
|
out := new(SatelliteSummaryResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payout/SatelliteSummary", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcPayoutClient) SatellitePeriodSummary(ctx context.Context, in *SatellitePeriodSummaryRequest) (*SatellitePeriodSummaryResponse, error) {
|
|
|
|
out := new(SatellitePeriodSummaryResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payout/SatellitePeriodSummary", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcPayoutClient) Earned(ctx context.Context, in *EarnedRequest) (*EarnedResponse, error) {
|
|
|
|
out := new(EarnedResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payout/Earned", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcPayoutClient) EarnedPerSatellite(ctx context.Context, in *EarnedPerSatelliteRequest) (*EarnedPerSatelliteResponse, error) {
|
|
|
|
out := new(EarnedPerSatelliteResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payout/EarnedPerSatellite", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcPayoutClient) EstimatedPayoutSatellite(ctx context.Context, in *EstimatedPayoutSatelliteRequest) (*EstimatedPayoutSatelliteResponse, error) {
|
|
|
|
out := new(EstimatedPayoutSatelliteResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payout/EstimatedPayoutSatellite", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcPayoutClient) EstimatedPayoutTotal(ctx context.Context, in *EstimatedPayoutTotalRequest) (*EstimatedPayoutTotalResponse, error) {
|
|
|
|
out := new(EstimatedPayoutTotalResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payout/EstimatedPayoutTotal", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcPayoutClient) Undistributed(ctx context.Context, in *UndistributedRequest) (*UndistributedResponse, error) {
|
|
|
|
out := new(UndistributedResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payout/Undistributed", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcPayoutClient) SatellitePaystub(ctx context.Context, in *SatellitePaystubRequest) (*SatellitePaystubResponse, error) {
|
|
|
|
out := new(SatellitePaystubResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payout/SatellitePaystub", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcPayoutClient) Paystub(ctx context.Context, in *PaystubRequest) (*PaystubResponse, error) {
|
|
|
|
out := new(PaystubResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payout/Paystub", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcPayoutClient) PeriodPaystub(ctx context.Context, in *PeriodPaystubRequest) (*PeriodPaystubResponse, error) {
|
|
|
|
out := new(PeriodPaystubResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payout/PeriodPaystub", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *drpcPayoutClient) SatellitePeriodPaystub(ctx context.Context, in *SatellitePeriodPaystubRequest) (*SatellitePeriodPaystubResponse, error) {
|
|
|
|
out := new(SatellitePeriodPaystubResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/multinode.Payout/SatellitePeriodPaystub", drpcEncoding_File_multinode_proto{}, in, out)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCPayoutServer interface {
|
|
|
|
AllSatellitesSummary(context.Context, *AllSatellitesSummaryRequest) (*AllSatellitesSummaryResponse, error)
|
|
|
|
AllSatellitesPeriodSummary(context.Context, *AllSatellitesPeriodSummaryRequest) (*AllSatellitesPeriodSummaryResponse, error)
|
|
|
|
SatelliteSummary(context.Context, *SatelliteSummaryRequest) (*SatelliteSummaryResponse, error)
|
|
|
|
SatellitePeriodSummary(context.Context, *SatellitePeriodSummaryRequest) (*SatellitePeriodSummaryResponse, error)
|
|
|
|
Earned(context.Context, *EarnedRequest) (*EarnedResponse, error)
|
|
|
|
EarnedPerSatellite(context.Context, *EarnedPerSatelliteRequest) (*EarnedPerSatelliteResponse, error)
|
|
|
|
EstimatedPayoutSatellite(context.Context, *EstimatedPayoutSatelliteRequest) (*EstimatedPayoutSatelliteResponse, error)
|
|
|
|
EstimatedPayoutTotal(context.Context, *EstimatedPayoutTotalRequest) (*EstimatedPayoutTotalResponse, error)
|
|
|
|
Undistributed(context.Context, *UndistributedRequest) (*UndistributedResponse, error)
|
|
|
|
SatellitePaystub(context.Context, *SatellitePaystubRequest) (*SatellitePaystubResponse, error)
|
|
|
|
Paystub(context.Context, *PaystubRequest) (*PaystubResponse, error)
|
|
|
|
PeriodPaystub(context.Context, *PeriodPaystubRequest) (*PeriodPaystubResponse, error)
|
|
|
|
SatellitePeriodPaystub(context.Context, *SatellitePeriodPaystubRequest) (*SatellitePeriodPaystubResponse, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCPayoutUnimplementedServer struct{}
|
|
|
|
|
|
|
|
func (s *DRPCPayoutUnimplementedServer) AllSatellitesSummary(context.Context, *AllSatellitesSummaryRequest) (*AllSatellitesSummaryResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-16 17:46:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCPayoutUnimplementedServer) AllSatellitesPeriodSummary(context.Context, *AllSatellitesPeriodSummaryRequest) (*AllSatellitesPeriodSummaryResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-16 17:46:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCPayoutUnimplementedServer) SatelliteSummary(context.Context, *SatelliteSummaryRequest) (*SatelliteSummaryResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-16 17:46:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCPayoutUnimplementedServer) SatellitePeriodSummary(context.Context, *SatellitePeriodSummaryRequest) (*SatellitePeriodSummaryResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-16 17:46:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCPayoutUnimplementedServer) Earned(context.Context, *EarnedRequest) (*EarnedResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-16 17:46:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCPayoutUnimplementedServer) EarnedPerSatellite(context.Context, *EarnedPerSatelliteRequest) (*EarnedPerSatelliteResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-16 17:46:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCPayoutUnimplementedServer) EstimatedPayoutSatellite(context.Context, *EstimatedPayoutSatelliteRequest) (*EstimatedPayoutSatelliteResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-16 17:46:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCPayoutUnimplementedServer) EstimatedPayoutTotal(context.Context, *EstimatedPayoutTotalRequest) (*EstimatedPayoutTotalResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-16 17:46:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCPayoutUnimplementedServer) Undistributed(context.Context, *UndistributedRequest) (*UndistributedResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-16 17:46:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCPayoutUnimplementedServer) SatellitePaystub(context.Context, *SatellitePaystubRequest) (*SatellitePaystubResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-16 17:46:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCPayoutUnimplementedServer) Paystub(context.Context, *PaystubRequest) (*PaystubResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-16 17:46:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCPayoutUnimplementedServer) PeriodPaystub(context.Context, *PeriodPaystubRequest) (*PeriodPaystubResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-16 17:46:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCPayoutUnimplementedServer) SatellitePeriodPaystub(context.Context, *SatellitePeriodPaystubRequest) (*SatellitePeriodPaystubResponse, error) {
|
2022-12-01 11:18:34 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
|
2021-06-16 17:46:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCPayoutDescription struct{}
|
|
|
|
|
|
|
|
func (DRPCPayoutDescription) NumMethods() int { return 13 }
|
|
|
|
|
|
|
|
func (DRPCPayoutDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool) {
|
|
|
|
switch n {
|
|
|
|
case 0:
|
|
|
|
return "/multinode.Payout/AllSatellitesSummary", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCPayoutServer).
|
|
|
|
AllSatellitesSummary(
|
|
|
|
ctx,
|
|
|
|
in1.(*AllSatellitesSummaryRequest),
|
|
|
|
)
|
|
|
|
}, DRPCPayoutServer.AllSatellitesSummary, true
|
|
|
|
case 1:
|
|
|
|
return "/multinode.Payout/AllSatellitesPeriodSummary", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCPayoutServer).
|
|
|
|
AllSatellitesPeriodSummary(
|
|
|
|
ctx,
|
|
|
|
in1.(*AllSatellitesPeriodSummaryRequest),
|
|
|
|
)
|
|
|
|
}, DRPCPayoutServer.AllSatellitesPeriodSummary, true
|
|
|
|
case 2:
|
|
|
|
return "/multinode.Payout/SatelliteSummary", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCPayoutServer).
|
|
|
|
SatelliteSummary(
|
|
|
|
ctx,
|
|
|
|
in1.(*SatelliteSummaryRequest),
|
|
|
|
)
|
|
|
|
}, DRPCPayoutServer.SatelliteSummary, true
|
|
|
|
case 3:
|
|
|
|
return "/multinode.Payout/SatellitePeriodSummary", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCPayoutServer).
|
|
|
|
SatellitePeriodSummary(
|
|
|
|
ctx,
|
|
|
|
in1.(*SatellitePeriodSummaryRequest),
|
|
|
|
)
|
|
|
|
}, DRPCPayoutServer.SatellitePeriodSummary, true
|
|
|
|
case 4:
|
|
|
|
return "/multinode.Payout/Earned", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCPayoutServer).
|
|
|
|
Earned(
|
|
|
|
ctx,
|
|
|
|
in1.(*EarnedRequest),
|
|
|
|
)
|
|
|
|
}, DRPCPayoutServer.Earned, true
|
|
|
|
case 5:
|
|
|
|
return "/multinode.Payout/EarnedPerSatellite", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCPayoutServer).
|
|
|
|
EarnedPerSatellite(
|
|
|
|
ctx,
|
|
|
|
in1.(*EarnedPerSatelliteRequest),
|
|
|
|
)
|
|
|
|
}, DRPCPayoutServer.EarnedPerSatellite, true
|
|
|
|
case 6:
|
|
|
|
return "/multinode.Payout/EstimatedPayoutSatellite", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCPayoutServer).
|
|
|
|
EstimatedPayoutSatellite(
|
|
|
|
ctx,
|
|
|
|
in1.(*EstimatedPayoutSatelliteRequest),
|
|
|
|
)
|
|
|
|
}, DRPCPayoutServer.EstimatedPayoutSatellite, true
|
|
|
|
case 7:
|
|
|
|
return "/multinode.Payout/EstimatedPayoutTotal", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCPayoutServer).
|
|
|
|
EstimatedPayoutTotal(
|
|
|
|
ctx,
|
|
|
|
in1.(*EstimatedPayoutTotalRequest),
|
|
|
|
)
|
|
|
|
}, DRPCPayoutServer.EstimatedPayoutTotal, true
|
|
|
|
case 8:
|
|
|
|
return "/multinode.Payout/Undistributed", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCPayoutServer).
|
|
|
|
Undistributed(
|
|
|
|
ctx,
|
|
|
|
in1.(*UndistributedRequest),
|
|
|
|
)
|
|
|
|
}, DRPCPayoutServer.Undistributed, true
|
|
|
|
case 9:
|
|
|
|
return "/multinode.Payout/SatellitePaystub", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCPayoutServer).
|
|
|
|
SatellitePaystub(
|
|
|
|
ctx,
|
|
|
|
in1.(*SatellitePaystubRequest),
|
|
|
|
)
|
|
|
|
}, DRPCPayoutServer.SatellitePaystub, true
|
|
|
|
case 10:
|
|
|
|
return "/multinode.Payout/Paystub", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCPayoutServer).
|
|
|
|
Paystub(
|
|
|
|
ctx,
|
|
|
|
in1.(*PaystubRequest),
|
|
|
|
)
|
|
|
|
}, DRPCPayoutServer.Paystub, true
|
|
|
|
case 11:
|
|
|
|
return "/multinode.Payout/PeriodPaystub", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCPayoutServer).
|
|
|
|
PeriodPaystub(
|
|
|
|
ctx,
|
|
|
|
in1.(*PeriodPaystubRequest),
|
|
|
|
)
|
|
|
|
}, DRPCPayoutServer.PeriodPaystub, true
|
|
|
|
case 12:
|
|
|
|
return "/multinode.Payout/SatellitePeriodPaystub", drpcEncoding_File_multinode_proto{},
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
return srv.(DRPCPayoutServer).
|
|
|
|
SatellitePeriodPaystub(
|
|
|
|
ctx,
|
|
|
|
in1.(*SatellitePeriodPaystubRequest),
|
|
|
|
)
|
|
|
|
}, DRPCPayoutServer.SatellitePeriodPaystub, true
|
|
|
|
default:
|
|
|
|
return "", nil, nil, nil, false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func DRPCRegisterPayout(mux drpc.Mux, impl DRPCPayoutServer) error {
|
|
|
|
return mux.Register(impl, DRPCPayoutDescription{})
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCPayout_AllSatellitesSummaryStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*AllSatellitesSummaryResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcPayout_AllSatellitesSummaryStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcPayout_AllSatellitesSummaryStream) SendAndClose(m *AllSatellitesSummaryResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCPayout_AllSatellitesPeriodSummaryStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*AllSatellitesPeriodSummaryResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcPayout_AllSatellitesPeriodSummaryStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcPayout_AllSatellitesPeriodSummaryStream) SendAndClose(m *AllSatellitesPeriodSummaryResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCPayout_SatelliteSummaryStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*SatelliteSummaryResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcPayout_SatelliteSummaryStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcPayout_SatelliteSummaryStream) SendAndClose(m *SatelliteSummaryResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCPayout_SatellitePeriodSummaryStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*SatellitePeriodSummaryResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcPayout_SatellitePeriodSummaryStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcPayout_SatellitePeriodSummaryStream) SendAndClose(m *SatellitePeriodSummaryResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCPayout_EarnedStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*EarnedResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcPayout_EarnedStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcPayout_EarnedStream) SendAndClose(m *EarnedResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCPayout_EarnedPerSatelliteStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*EarnedPerSatelliteResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcPayout_EarnedPerSatelliteStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcPayout_EarnedPerSatelliteStream) SendAndClose(m *EarnedPerSatelliteResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCPayout_EstimatedPayoutSatelliteStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*EstimatedPayoutSatelliteResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcPayout_EstimatedPayoutSatelliteStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcPayout_EstimatedPayoutSatelliteStream) SendAndClose(m *EstimatedPayoutSatelliteResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCPayout_EstimatedPayoutTotalStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*EstimatedPayoutTotalResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcPayout_EstimatedPayoutTotalStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcPayout_EstimatedPayoutTotalStream) SendAndClose(m *EstimatedPayoutTotalResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCPayout_UndistributedStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*UndistributedResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcPayout_UndistributedStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcPayout_UndistributedStream) SendAndClose(m *UndistributedResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCPayout_SatellitePaystubStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*SatellitePaystubResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcPayout_SatellitePaystubStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcPayout_SatellitePaystubStream) SendAndClose(m *SatellitePaystubResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCPayout_PaystubStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*PaystubResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcPayout_PaystubStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcPayout_PaystubStream) SendAndClose(m *PaystubResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCPayout_PeriodPaystubStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*PeriodPaystubResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcPayout_PeriodPaystubStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcPayout_PeriodPaystubStream) SendAndClose(m *PeriodPaystubResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCPayout_SatellitePeriodPaystubStream interface {
|
|
|
|
drpc.Stream
|
|
|
|
SendAndClose(*SatellitePeriodPaystubResponse) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type drpcPayout_SatellitePeriodPaystubStream struct {
|
|
|
|
drpc.Stream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *drpcPayout_SatellitePeriodPaystubStream) SendAndClose(m *SatellitePeriodPaystubResponse) error {
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return x.CloseSend()
|
|
|
|
}
|