Documentation ¶
Index ¶
- func RegisterDemoServiceServer(s *grpc.Server, srv DemoServiceServer)
- type DemoServiceClient
- type DemoServiceServer
- type LiffRequest
- func (*LiffRequest) Descriptor() ([]byte, []int)
- func (m *LiffRequest) GetID() int64
- func (*LiffRequest) ProtoMessage()
- func (m *LiffRequest) Reset()
- func (m *LiffRequest) String() string
- func (m *LiffRequest) XXX_DiscardUnknown()
- func (m *LiffRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LiffRequest) XXX_Merge(src proto.Message)
- func (m *LiffRequest) XXX_Size() int
- func (m *LiffRequest) XXX_Unmarshal(b []byte) error
- type LiffResponse
- func (*LiffResponse) Descriptor() ([]byte, []int)
- func (m *LiffResponse) GetDefinition() string
- func (m *LiffResponse) GetID() int64
- func (m *LiffResponse) GetNodeID() string
- func (*LiffResponse) ProtoMessage()
- func (m *LiffResponse) Reset()
- func (m *LiffResponse) String() string
- func (m *LiffResponse) XXX_DiscardUnknown()
- func (m *LiffResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LiffResponse) XXX_Merge(src proto.Message)
- func (m *LiffResponse) XXX_Size() int
- func (m *LiffResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDemoServiceServer ¶
func RegisterDemoServiceServer(s *grpc.Server, srv DemoServiceServer)
Types ¶
type DemoServiceClient ¶
type DemoServiceClient interface { // This method returns a line from one of the Liff books. Liff(ctx context.Context, in *LiffRequest, opts ...grpc.CallOption) (*LiffResponse, error) }
DemoServiceClient is the client API for DemoService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDemoServiceClient ¶
func NewDemoServiceClient(cc *grpc.ClientConn) DemoServiceClient
type DemoServiceServer ¶
type DemoServiceServer interface { // This method returns a line from one of the Liff books. Liff(context.Context, *LiffRequest) (*LiffResponse, error) }
DemoServiceServer is the server API for DemoService service.
type LiffRequest ¶
type LiffRequest struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LiffRequest) Descriptor ¶
func (*LiffRequest) Descriptor() ([]byte, []int)
func (*LiffRequest) GetID ¶
func (m *LiffRequest) GetID() int64
func (*LiffRequest) ProtoMessage ¶
func (*LiffRequest) ProtoMessage()
func (*LiffRequest) Reset ¶
func (m *LiffRequest) Reset()
func (*LiffRequest) String ¶
func (m *LiffRequest) String() string
func (*LiffRequest) XXX_DiscardUnknown ¶
func (m *LiffRequest) XXX_DiscardUnknown()
func (*LiffRequest) XXX_Marshal ¶
func (m *LiffRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LiffRequest) XXX_Merge ¶
func (m *LiffRequest) XXX_Merge(src proto.Message)
func (*LiffRequest) XXX_Size ¶
func (m *LiffRequest) XXX_Size() int
func (*LiffRequest) XXX_Unmarshal ¶
func (m *LiffRequest) XXX_Unmarshal(b []byte) error
type LiffResponse ¶
type LiffResponse struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Definition string `protobuf:"bytes,2,opt,name=Definition,proto3" json:"Definition,omitempty"` NodeID string `protobuf:"bytes,3,opt,name=NodeID,proto3" json:"NodeID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LiffResponse) Descriptor ¶
func (*LiffResponse) Descriptor() ([]byte, []int)
func (*LiffResponse) GetDefinition ¶
func (m *LiffResponse) GetDefinition() string
func (*LiffResponse) GetID ¶
func (m *LiffResponse) GetID() int64
func (*LiffResponse) GetNodeID ¶
func (m *LiffResponse) GetNodeID() string
func (*LiffResponse) ProtoMessage ¶
func (*LiffResponse) ProtoMessage()
func (*LiffResponse) Reset ¶
func (m *LiffResponse) Reset()
func (*LiffResponse) String ¶
func (m *LiffResponse) String() string
func (*LiffResponse) XXX_DiscardUnknown ¶
func (m *LiffResponse) XXX_DiscardUnknown()
func (*LiffResponse) XXX_Marshal ¶
func (m *LiffResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LiffResponse) XXX_Merge ¶
func (m *LiffResponse) XXX_Merge(src proto.Message)
func (*LiffResponse) XXX_Size ¶
func (m *LiffResponse) XXX_Size() int
func (*LiffResponse) XXX_Unmarshal ¶
func (m *LiffResponse) XXX_Unmarshal(b []byte) error
Directories ¶
Path | Synopsis |
---|---|
Package main contains the demo client code.
|
Package main contains the demo client code. |
Package main contains a very simple demo project
|
Package main contains a very simple demo project |
Click to show internal directories.
Click to hide internal directories.