pricesrpc

package
v0.1.10-beta Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPricesServer

func RegisterPricesServer(s *grpc.Server, srv PricesServer)

Types

type GetPriceRequest

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

func (*GetPriceRequest) Descriptor

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

func (*GetPriceRequest) GetPath

func (m *GetPriceRequest) GetPath() string

func (*GetPriceRequest) ProtoMessage

func (*GetPriceRequest) ProtoMessage()

func (*GetPriceRequest) Reset

func (m *GetPriceRequest) Reset()

func (*GetPriceRequest) String

func (m *GetPriceRequest) String() string

func (*GetPriceRequest) XXX_DiscardUnknown

func (m *GetPriceRequest) XXX_DiscardUnknown()

func (*GetPriceRequest) XXX_Marshal

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

func (*GetPriceRequest) XXX_Merge

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

func (*GetPriceRequest) XXX_Size

func (m *GetPriceRequest) XXX_Size() int

func (*GetPriceRequest) XXX_Unmarshal

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

type GetPriceResponse

type GetPriceResponse struct {
	Price                int64    `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetPriceResponse) Descriptor

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

func (*GetPriceResponse) GetPrice

func (m *GetPriceResponse) GetPrice() int64

func (*GetPriceResponse) ProtoMessage

func (*GetPriceResponse) ProtoMessage()

func (*GetPriceResponse) Reset

func (m *GetPriceResponse) Reset()

func (*GetPriceResponse) String

func (m *GetPriceResponse) String() string

func (*GetPriceResponse) XXX_DiscardUnknown

func (m *GetPriceResponse) XXX_DiscardUnknown()

func (*GetPriceResponse) XXX_Marshal

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

func (*GetPriceResponse) XXX_Merge

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

func (*GetPriceResponse) XXX_Size

func (m *GetPriceResponse) XXX_Size() int

func (*GetPriceResponse) XXX_Unmarshal

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

type PricesClient

type PricesClient interface {
	GetPrice(ctx context.Context, in *GetPriceRequest, opts ...grpc.CallOption) (*GetPriceResponse, error)
}

PricesClient is the client API for Prices service.

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

func NewPricesClient

func NewPricesClient(cc *grpc.ClientConn) PricesClient

type PricesServer

type PricesServer interface {
	GetPrice(context.Context, *GetPriceRequest) (*GetPriceResponse, error)
}

PricesServer is the server API for Prices service.

type UnimplementedPricesServer

type UnimplementedPricesServer struct {
}

UnimplementedPricesServer can be embedded to have forward compatible implementations.

func (*UnimplementedPricesServer) GetPrice

Jump to

Keyboard shortcuts

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