Documentation ¶
Index ¶
- func RegisterLeafServer(s *grpc.Server, srv LeafServer)
- func RunGrpc(sf *core.Snowflake)
- type LeafClient
- type LeafGrpc
- type LeafServer
- type Reply
- func (*Reply) Descriptor() ([]byte, []int)
- func (m *Reply) GetMessage() string
- func (*Reply) ProtoMessage()
- func (m *Reply) Reset()
- func (m *Reply) String() string
- func (m *Reply) XXX_DiscardUnknown()
- func (m *Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Reply) XXX_Merge(src proto.Message)
- func (m *Reply) XXX_Size() int
- func (m *Reply) XXX_Unmarshal(b []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type UnimplementedLeafServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterLeafServer ¶
func RegisterLeafServer(s *grpc.Server, srv LeafServer)
Types ¶
type LeafClient ¶
type LeafClient interface {
GenId(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Reply, error)
}
LeafClient is the client API for Leaf service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLeafClient ¶
func NewLeafClient(cc *grpc.ClientConn) LeafClient
type LeafServer ¶
LeafServer is the server API for Leaf service.
type Reply ¶
type Reply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Reply) Descriptor ¶
func (*Reply) GetMessage ¶
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) XXX_DiscardUnknown ¶
func (m *Reply) XXX_DiscardUnknown()
func (*Reply) XXX_Marshal ¶
func (*Reply) XXX_Unmarshal ¶
type Request ¶
type Request struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type UnimplementedLeafServer ¶
type UnimplementedLeafServer struct { }
UnimplementedLeafServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.