Documentation
¶
Index ¶
- func RegisterExampleServiceServer(s *grpc.Server, srv ExampleServiceServer)
- type ExampleServiceClient
- type ExampleServiceServer
- type Payload
- func (*Payload) Descriptor() ([]byte, []int)
- func (m *Payload) GetCreatedAt() string
- func (*Payload) ProtoMessage()
- func (m *Payload) Reset()
- func (m *Payload) String() string
- func (m *Payload) XXX_DiscardUnknown()
- func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Payload) XXX_Merge(src proto.Message)
- func (m *Payload) XXX_Size() int
- func (m *Payload) XXX_Unmarshal(b []byte) error
- type PayloadResponse
- func (*PayloadResponse) Descriptor() ([]byte, []int)
- func (m *PayloadResponse) GetSuccess() bool
- func (*PayloadResponse) ProtoMessage()
- func (m *PayloadResponse) Reset()
- func (m *PayloadResponse) String() string
- func (m *PayloadResponse) XXX_DiscardUnknown()
- func (m *PayloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PayloadResponse) XXX_Merge(src proto.Message)
- func (m *PayloadResponse) XXX_Size() int
- func (m *PayloadResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedExampleServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterExampleServiceServer ¶
func RegisterExampleServiceServer(s *grpc.Server, srv ExampleServiceServer)
Types ¶
type ExampleServiceClient ¶
type ExampleServiceClient interface { // Send exception and returns true if successful Send(ctx context.Context, in *Payload, opts ...grpc.CallOption) (*PayloadResponse, error) }
ExampleServiceClient is the client API for ExampleService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewExampleServiceClient ¶
func NewExampleServiceClient(cc *grpc.ClientConn) ExampleServiceClient
type ExampleServiceServer ¶
type ExampleServiceServer interface { // Send exception and returns true if successful Send(context.Context, *Payload) (*PayloadResponse, error) }
ExampleServiceServer is the server API for ExampleService service.
type Payload ¶
type Payload struct { CreatedAt string `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Payload) Descriptor ¶
func (*Payload) GetCreatedAt ¶
func (*Payload) ProtoMessage ¶
func (*Payload) ProtoMessage()
func (*Payload) XXX_DiscardUnknown ¶
func (m *Payload) XXX_DiscardUnknown()
func (*Payload) XXX_Marshal ¶
func (*Payload) XXX_Unmarshal ¶
type PayloadResponse ¶
type PayloadResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PayloadResponse) Descriptor ¶
func (*PayloadResponse) Descriptor() ([]byte, []int)
func (*PayloadResponse) GetSuccess ¶
func (m *PayloadResponse) GetSuccess() bool
func (*PayloadResponse) ProtoMessage ¶
func (*PayloadResponse) ProtoMessage()
func (*PayloadResponse) Reset ¶
func (m *PayloadResponse) Reset()
func (*PayloadResponse) String ¶
func (m *PayloadResponse) String() string
func (*PayloadResponse) XXX_DiscardUnknown ¶
func (m *PayloadResponse) XXX_DiscardUnknown()
func (*PayloadResponse) XXX_Marshal ¶
func (m *PayloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PayloadResponse) XXX_Merge ¶
func (m *PayloadResponse) XXX_Merge(src proto.Message)
func (*PayloadResponse) XXX_Size ¶
func (m *PayloadResponse) XXX_Size() int
func (*PayloadResponse) XXX_Unmarshal ¶
func (m *PayloadResponse) XXX_Unmarshal(b []byte) error
type UnimplementedExampleServiceServer ¶
type UnimplementedExampleServiceServer struct { }
UnimplementedExampleServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedExampleServiceServer) Send ¶
func (*UnimplementedExampleServiceServer) Send(ctx context.Context, req *Payload) (*PayloadResponse, error)
Click to show internal directories.
Click to hide internal directories.