2021-03-23 10:41:41 +00:00
|
|
|
// Code generated by protoc-gen-go-drpc. DO NOT EDIT.
|
2021-06-01 16:02:50 +01:00
|
|
|
// protoc-gen-go-drpc version: v0.0.20
|
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) {
|
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
2021-06-03 12:52:28 +01:00
|
|
|
func (s *DRPCStorageUnimplementedServer) Usage(context.Context, *StorageUsageRequest) (*StorageUsageResponse, error) {
|
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCStorageUnimplementedServer) UsageSatellite(context.Context, *StorageUsageSatelliteRequest) (*StorageUsageSatelliteResponse, error) {
|
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCBandwidthServer interface {
|
|
|
|
MonthSummary(context.Context, *BandwidthMonthSummaryRequest) (*BandwidthMonthSummaryResponse, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCBandwidthUnimplementedServer struct{}
|
|
|
|
|
|
|
|
func (s *DRPCBandwidthUnimplementedServer) MonthSummary(context.Context, *BandwidthMonthSummaryRequest) (*BandwidthMonthSummaryResponse, error) {
|
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
|
|
|
type DRPCBandwidthDescription struct{}
|
|
|
|
|
|
|
|
func (DRPCBandwidthDescription) NumMethods() int { return 1 }
|
|
|
|
|
|
|
|
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
|
|
|
|
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()
|
|
|
|
}
|
|
|
|
|
|
|
|
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) {
|
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCNodeUnimplementedServer) LastContact(context.Context, *LastContactRequest) (*LastContactResponse, error) {
|
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCNodeUnimplementedServer) Reputation(context.Context, *ReputationRequest) (*ReputationResponse, error) {
|
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *DRPCNodeUnimplementedServer) TrustedSatellites(context.Context, *TrustedSatellitesRequest) (*TrustedSatellitesResponse, error) {
|
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
2021-06-01 08:29:46 +01:00
|
|
|
func (s *DRPCNodeUnimplementedServer) Operator(context.Context, *OperatorRequest) (*OperatorResponse, error) {
|
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
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) {
|
2021-05-05 18:34:10 +01:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) SummaryPeriod(context.Context, *SummaryPeriodRequest) (*SummaryPeriodResponse, error) {
|
2021-05-05 18:34:10 +01:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) SummarySatellite(context.Context, *SummarySatelliteRequest) (*SummarySatelliteResponse, error) {
|
2021-05-05 21:01:16 +01:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) SummarySatellitePeriod(context.Context, *SummarySatellitePeriodRequest) (*SummarySatellitePeriodResponse, error) {
|
2021-05-05 21:01:16 +01:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) Earned(context.Context, *EarnedRequest) (*EarnedResponse, error) {
|
2021-03-23 10:41:41 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) EarnedSatellite(context.Context, *EarnedSatelliteRequest) (*EarnedSatelliteResponse, error) {
|
2021-03-23 10:41:41 +00:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) EstimatedPayoutSatellite(context.Context, *EstimatedPayoutSatelliteRequest) (*EstimatedPayoutSatelliteResponse, error) {
|
2021-05-05 18:10:58 +01:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) EstimatedPayout(context.Context, *EstimatedPayoutRequest) (*EstimatedPayoutResponse, error) {
|
2021-05-05 18:10:58 +01:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) Undistributed(context.Context, *UndistributedRequest) (*UndistributedResponse, error) {
|
2021-05-14 23:03:38 +01:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) PaystubSatellite(context.Context, *PaystubSatelliteRequest) (*PaystubSatelliteResponse, error) {
|
2021-05-25 13:02:20 +01:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) Paystub(context.Context, *PaystubRequest) (*PaystubResponse, error) {
|
2021-05-25 13:02:20 +01:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) PaystubPeriod(context.Context, *PaystubPeriodRequest) (*PaystubPeriodResponse, error) {
|
2021-05-24 21:40:31 +01:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) PaystubSatellitePeriod(context.Context, *PaystubSatellitePeriodRequest) (*PaystubSatellitePeriodResponse, error) {
|
2021-05-24 21:40:31 +01:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
2021-05-25 17:48:45 +01:00
|
|
|
func (s *DRPCPayoutsUnimplementedServer) HeldAmountHistory(context.Context, *HeldAmountHistoryRequest) (*HeldAmountHistoryResponse, error) {
|
2021-04-22 19:50:42 +01:00
|
|
|
return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12)
|
|
|
|
}
|
|
|
|
|
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()
|
|
|
|
}
|