Documentation ¶
Index ¶
- func RegisterAPIServer(s *grpc.Server, srv APIServer)
- type APIClient
- type APIServer
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)
- func (m *GetRequest) GetMessage() string
- func (*GetRequest) ProtoMessage()
- func (m *GetRequest) Reset()
- func (m *GetRequest) String() string
- func (m *GetRequest) XXX_DiscardUnknown()
- func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRequest) XXX_Merge(src proto.Message)
- func (m *GetRequest) XXX_Size() int
- func (m *GetRequest) XXX_Unmarshal(b []byte) error
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)
- func (m *GetResponse) GetMessage() string
- func (*GetResponse) ProtoMessage()
- func (m *GetResponse) Reset()
- func (m *GetResponse) String() string
- func (m *GetResponse) XXX_DiscardUnknown()
- func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetResponse) XXX_Merge(src proto.Message)
- func (m *GetResponse) XXX_Size() int
- func (m *GetResponse) XXX_Unmarshal(b []byte) error
- type PostRequest
- func (*PostRequest) Descriptor() ([]byte, []int)
- func (m *PostRequest) GetMessage() string
- func (*PostRequest) ProtoMessage()
- func (m *PostRequest) Reset()
- func (m *PostRequest) String() string
- func (m *PostRequest) XXX_DiscardUnknown()
- func (m *PostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PostRequest) XXX_Merge(src proto.Message)
- func (m *PostRequest) XXX_Size() int
- func (m *PostRequest) XXX_Unmarshal(b []byte) error
- type PostResponse
- func (*PostResponse) Descriptor() ([]byte, []int)
- func (m *PostResponse) GetMessage() string
- func (*PostResponse) ProtoMessage()
- func (m *PostResponse) Reset()
- func (m *PostResponse) String() string
- func (m *PostResponse) XXX_DiscardUnknown()
- func (m *PostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PostResponse) XXX_Merge(src proto.Message)
- func (m *PostResponse) XXX_Size() int
- func (m *PostResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedAPIServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAPIServer ¶
Types ¶
type APIClient ¶
type APIClient interface { GET(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) POST(ctx context.Context, in *PostRequest, opts ...grpc.CallOption) (*PostResponse, error) }
APIClient is the client API for API service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAPIClient ¶
func NewAPIClient(cc *grpc.ClientConn) APIClient
type APIServer ¶
type APIServer interface { GET(context.Context, *GetRequest) (*GetResponse, error) POST(context.Context, *PostRequest) (*PostResponse, error) }
APIServer is the server API for API service.
type GetRequest ¶
type GetRequest 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:"-"` }
Any get API-Rest request has to fill this definition
func (*GetRequest) Descriptor ¶
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) GetMessage ¶
func (m *GetRequest) GetMessage() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶
func (m *GetRequest) Reset()
func (*GetRequest) String ¶
func (m *GetRequest) String() string
func (*GetRequest) XXX_DiscardUnknown ¶
func (m *GetRequest) XXX_DiscardUnknown()
func (*GetRequest) XXX_Marshal ¶
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRequest) XXX_Merge ¶
func (m *GetRequest) XXX_Merge(src proto.Message)
func (*GetRequest) XXX_Size ¶
func (m *GetRequest) XXX_Size() int
func (*GetRequest) XXX_Unmarshal ¶
func (m *GetRequest) XXX_Unmarshal(b []byte) error
type GetResponse ¶
type GetResponse 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 (*GetResponse) Descriptor ¶
func (*GetResponse) Descriptor() ([]byte, []int)
func (*GetResponse) GetMessage ¶
func (m *GetResponse) GetMessage() string
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) Reset ¶
func (m *GetResponse) Reset()
func (*GetResponse) String ¶
func (m *GetResponse) String() string
func (*GetResponse) XXX_DiscardUnknown ¶
func (m *GetResponse) XXX_DiscardUnknown()
func (*GetResponse) XXX_Marshal ¶
func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetResponse) XXX_Merge ¶
func (m *GetResponse) XXX_Merge(src proto.Message)
func (*GetResponse) XXX_Size ¶
func (m *GetResponse) XXX_Size() int
func (*GetResponse) XXX_Unmarshal ¶
func (m *GetResponse) XXX_Unmarshal(b []byte) error
type PostRequest ¶
type PostRequest 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:"-"` }
Any get API-Rest post has to fill this definition
func (*PostRequest) Descriptor ¶
func (*PostRequest) Descriptor() ([]byte, []int)
func (*PostRequest) GetMessage ¶
func (m *PostRequest) GetMessage() string
func (*PostRequest) ProtoMessage ¶
func (*PostRequest) ProtoMessage()
func (*PostRequest) Reset ¶
func (m *PostRequest) Reset()
func (*PostRequest) String ¶
func (m *PostRequest) String() string
func (*PostRequest) XXX_DiscardUnknown ¶
func (m *PostRequest) XXX_DiscardUnknown()
func (*PostRequest) XXX_Marshal ¶
func (m *PostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PostRequest) XXX_Merge ¶
func (m *PostRequest) XXX_Merge(src proto.Message)
func (*PostRequest) XXX_Size ¶
func (m *PostRequest) XXX_Size() int
func (*PostRequest) XXX_Unmarshal ¶
func (m *PostRequest) XXX_Unmarshal(b []byte) error
type PostResponse ¶
type PostResponse 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 (*PostResponse) Descriptor ¶
func (*PostResponse) Descriptor() ([]byte, []int)
func (*PostResponse) GetMessage ¶
func (m *PostResponse) GetMessage() string
func (*PostResponse) ProtoMessage ¶
func (*PostResponse) ProtoMessage()
func (*PostResponse) Reset ¶
func (m *PostResponse) Reset()
func (*PostResponse) String ¶
func (m *PostResponse) String() string
func (*PostResponse) XXX_DiscardUnknown ¶
func (m *PostResponse) XXX_DiscardUnknown()
func (*PostResponse) XXX_Marshal ¶
func (m *PostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PostResponse) XXX_Merge ¶
func (m *PostResponse) XXX_Merge(src proto.Message)
func (*PostResponse) XXX_Size ¶
func (m *PostResponse) XXX_Size() int
func (*PostResponse) XXX_Unmarshal ¶
func (m *PostResponse) XXX_Unmarshal(b []byte) error
type UnimplementedAPIServer ¶
type UnimplementedAPIServer struct { }
UnimplementedAPIServer can be embedded to have forward compatible implementations.
func (*UnimplementedAPIServer) GET ¶
func (*UnimplementedAPIServer) GET(ctx context.Context, req *GetRequest) (*GetResponse, error)
func (*UnimplementedAPIServer) POST ¶
func (*UnimplementedAPIServer) POST(ctx context.Context, req *PostRequest) (*PostResponse, error)
Click to show internal directories.
Click to hide internal directories.