ferprpc

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRateServiceServer

func RegisterRateServiceServer(s *grpc.Server, srv RateServiceServer)

Types

type ConversionRate

type ConversionRate struct {
	Currency             string   `protobuf:"bytes,1,opt,name=currency,proto3" json:"currency,omitempty"`
	Rate                 float32  `protobuf:"fixed32,2,opt,name=rate,proto3" json:"rate,omitempty"`
	LastUpdated          int64    `protobuf:"varint,5,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ConversionRate) Descriptor

func (*ConversionRate) Descriptor() ([]byte, []int)

func (*ConversionRate) GetCurrency

func (m *ConversionRate) GetCurrency() string

func (*ConversionRate) GetLastUpdated

func (m *ConversionRate) GetLastUpdated() int64

func (*ConversionRate) GetRate

func (m *ConversionRate) GetRate() float32

func (*ConversionRate) ProtoMessage

func (*ConversionRate) ProtoMessage()

func (*ConversionRate) Reset

func (m *ConversionRate) Reset()

func (*ConversionRate) String

func (m *ConversionRate) String() string

func (*ConversionRate) XXX_DiscardUnknown

func (m *ConversionRate) XXX_DiscardUnknown()

func (*ConversionRate) XXX_Marshal

func (m *ConversionRate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConversionRate) XXX_Merge

func (m *ConversionRate) XXX_Merge(src proto.Message)

func (*ConversionRate) XXX_Size

func (m *ConversionRate) XXX_Size() int

func (*ConversionRate) XXX_Unmarshal

func (m *ConversionRate) XXX_Unmarshal(b []byte) error

type RateServiceClient

type RateServiceClient interface {
	SubscribeRates(ctx context.Context, in *SubscribeRatesRequest, opts ...grpc.CallOption) (RateService_SubscribeRatesClient, error)
}

RateServiceClient is the client API for RateService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewRateServiceClient

func NewRateServiceClient(cc *grpc.ClientConn) RateServiceClient

type RateServiceServer

type RateServiceServer interface {
	SubscribeRates(*SubscribeRatesRequest, RateService_SubscribeRatesServer) error
}

RateServiceServer is the server API for RateService service.

type RateService_SubscribeRatesClient

type RateService_SubscribeRatesClient interface {
	Recv() (*SubscribeRatesResponse, error)
	grpc.ClientStream
}

type RateService_SubscribeRatesServer

type RateService_SubscribeRatesServer interface {
	Send(*SubscribeRatesResponse) error
	grpc.ServerStream
}

type SubscribeRatesRequest

type SubscribeRatesRequest struct {
	Currency             string   `protobuf:"bytes,1,opt,name=currency,proto3" json:"currency,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SubscribeRatesRequest) Descriptor

func (*SubscribeRatesRequest) Descriptor() ([]byte, []int)

func (*SubscribeRatesRequest) GetCurrency

func (m *SubscribeRatesRequest) GetCurrency() string

func (*SubscribeRatesRequest) ProtoMessage

func (*SubscribeRatesRequest) ProtoMessage()

func (*SubscribeRatesRequest) Reset

func (m *SubscribeRatesRequest) Reset()

func (*SubscribeRatesRequest) String

func (m *SubscribeRatesRequest) String() string

func (*SubscribeRatesRequest) XXX_DiscardUnknown

func (m *SubscribeRatesRequest) XXX_DiscardUnknown()

func (*SubscribeRatesRequest) XXX_Marshal

func (m *SubscribeRatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SubscribeRatesRequest) XXX_Merge

func (m *SubscribeRatesRequest) XXX_Merge(src proto.Message)

func (*SubscribeRatesRequest) XXX_Size

func (m *SubscribeRatesRequest) XXX_Size() int

func (*SubscribeRatesRequest) XXX_Unmarshal

func (m *SubscribeRatesRequest) XXX_Unmarshal(b []byte) error

type SubscribeRatesResponse

type SubscribeRatesResponse struct {
	Currency             string          `protobuf:"bytes,1,opt,name=currency,proto3" json:"currency,omitempty"`
	Rate                 int64           `protobuf:"varint,2,opt,name=rate,proto3" json:"rate,omitempty"`
	RateMsat             int64           `protobuf:"varint,3,opt,name=rate_msat,json=rateMsat,proto3" json:"rate_msat,omitempty"`
	ConversionRate       *ConversionRate `protobuf:"bytes,4,opt,name=conversion_rate,json=conversionRate,proto3" json:"conversion_rate,omitempty"`
	LastUpdated          int64           `protobuf:"varint,5,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*SubscribeRatesResponse) Descriptor

func (*SubscribeRatesResponse) Descriptor() ([]byte, []int)

func (*SubscribeRatesResponse) GetConversionRate

func (m *SubscribeRatesResponse) GetConversionRate() *ConversionRate

func (*SubscribeRatesResponse) GetCurrency

func (m *SubscribeRatesResponse) GetCurrency() string

func (*SubscribeRatesResponse) GetLastUpdated

func (m *SubscribeRatesResponse) GetLastUpdated() int64

func (*SubscribeRatesResponse) GetRate

func (m *SubscribeRatesResponse) GetRate() int64

func (*SubscribeRatesResponse) GetRateMsat

func (m *SubscribeRatesResponse) GetRateMsat() int64

func (*SubscribeRatesResponse) ProtoMessage

func (*SubscribeRatesResponse) ProtoMessage()

func (*SubscribeRatesResponse) Reset

func (m *SubscribeRatesResponse) Reset()

func (*SubscribeRatesResponse) String

func (m *SubscribeRatesResponse) String() string

func (*SubscribeRatesResponse) XXX_DiscardUnknown

func (m *SubscribeRatesResponse) XXX_DiscardUnknown()

func (*SubscribeRatesResponse) XXX_Marshal

func (m *SubscribeRatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SubscribeRatesResponse) XXX_Merge

func (m *SubscribeRatesResponse) XXX_Merge(src proto.Message)

func (*SubscribeRatesResponse) XXX_Size

func (m *SubscribeRatesResponse) XXX_Size() int

func (*SubscribeRatesResponse) XXX_Unmarshal

func (m *SubscribeRatesResponse) XXX_Unmarshal(b []byte) error

type UnimplementedRateServiceServer

type UnimplementedRateServiceServer struct {
}

UnimplementedRateServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedRateServiceServer) SubscribeRates

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL