Documentation ¶
Index ¶
- Variables
- func RegisterStateServer(s *grpc.Server, srv StateServer)
- type BigInt
- type GetTokenRequest
- type StateClient
- type StateServer
- type State_StreamTokenClient
- type State_StreamTokenServer
- type StreamTokenRequest
- func (*StreamTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StreamTokenRequest) GetAddresses() []string
- func (*StreamTokenRequest) ProtoMessage()
- func (x *StreamTokenRequest) ProtoReflect() protoreflect.Message
- func (x *StreamTokenRequest) Reset()
- func (x *StreamTokenRequest) String() string
- type Token
- func (*Token) Descriptor() ([]byte, []int)deprecated
- func (x *Token) GetAddress() []byte
- func (x *Token) GetDecimals() uint32
- func (x *Token) GetName() string
- func (x *Token) GetSymbol() string
- func (x *Token) GetTotalSupply() *BigInt
- func (*Token) ProtoMessage()
- func (x *Token) ProtoReflect() protoreflect.Message
- func (x *Token) Reset()
- func (x *Token) String() string
- type UnimplementedStateServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_sf_ethereum_tokenmeta_v1_tokenmeta_proto protoreflect.FileDescriptor
Functions ¶
func RegisterStateServer ¶
func RegisterStateServer(s *grpc.Server, srv StateServer)
Types ¶
type BigInt ¶
type BigInt struct { Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"` // contains filtered or unexported fields }
func (*BigInt) Descriptor
deprecated
func (*BigInt) ProtoMessage ¶
func (*BigInt) ProtoMessage()
func (*BigInt) ProtoReflect ¶
func (x *BigInt) ProtoReflect() protoreflect.Message
type GetTokenRequest ¶
type GetTokenRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*GetTokenRequest) Descriptor
deprecated
func (*GetTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTokenRequest.ProtoReflect.Descriptor instead.
func (*GetTokenRequest) GetAddress ¶
func (x *GetTokenRequest) GetAddress() string
func (*GetTokenRequest) ProtoMessage ¶
func (*GetTokenRequest) ProtoMessage()
func (*GetTokenRequest) ProtoReflect ¶
func (x *GetTokenRequest) ProtoReflect() protoreflect.Message
func (*GetTokenRequest) Reset ¶
func (x *GetTokenRequest) Reset()
func (*GetTokenRequest) String ¶
func (x *GetTokenRequest) String() string
type StateClient ¶
type StateClient interface { StreamToken(ctx context.Context, in *StreamTokenRequest, opts ...grpc.CallOption) (State_StreamTokenClient, error) GetToken(ctx context.Context, in *GetTokenRequest, opts ...grpc.CallOption) (*Token, error) }
StateClient is the client API for State service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewStateClient ¶
func NewStateClient(cc grpc.ClientConnInterface) StateClient
type StateServer ¶
type StateServer interface { StreamToken(*StreamTokenRequest, State_StreamTokenServer) error GetToken(context.Context, *GetTokenRequest) (*Token, error) }
StateServer is the server API for State service.
type State_StreamTokenClient ¶
type State_StreamTokenClient interface { Recv() (*Token, error) grpc.ClientStream }
type State_StreamTokenServer ¶
type State_StreamTokenServer interface { Send(*Token) error grpc.ServerStream }
type StreamTokenRequest ¶
type StreamTokenRequest struct { Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` // contains filtered or unexported fields }
func (*StreamTokenRequest) Descriptor
deprecated
func (*StreamTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use StreamTokenRequest.ProtoReflect.Descriptor instead.
func (*StreamTokenRequest) GetAddresses ¶
func (x *StreamTokenRequest) GetAddresses() []string
func (*StreamTokenRequest) ProtoMessage ¶
func (*StreamTokenRequest) ProtoMessage()
func (*StreamTokenRequest) ProtoReflect ¶
func (x *StreamTokenRequest) ProtoReflect() protoreflect.Message
func (*StreamTokenRequest) Reset ¶
func (x *StreamTokenRequest) Reset()
func (*StreamTokenRequest) String ¶
func (x *StreamTokenRequest) String() string
type Token ¶
type Token struct { Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"` Decimals uint32 `protobuf:"varint,4,opt,name=decimals,proto3" json:"decimals,omitempty"` TotalSupply *BigInt `protobuf:"bytes,5,opt,name=totalSupply,proto3" json:"totalSupply,omitempty"` // contains filtered or unexported fields }
func (*Token) Descriptor
deprecated
func (*Token) GetAddress ¶
func (*Token) GetDecimals ¶
func (*Token) GetTotalSupply ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) ProtoReflect ¶
func (x *Token) ProtoReflect() protoreflect.Message
type UnimplementedStateServer ¶
type UnimplementedStateServer struct { }
UnimplementedStateServer can be embedded to have forward compatible implementations.
func (*UnimplementedStateServer) GetToken ¶
func (*UnimplementedStateServer) GetToken(context.Context, *GetTokenRequest) (*Token, error)
func (*UnimplementedStateServer) StreamToken ¶
func (*UnimplementedStateServer) StreamToken(*StreamTokenRequest, State_StreamTokenServer) error
Click to show internal directories.
Click to hide internal directories.