Documentation ¶
Index ¶
- func RegisterSimpleGrpcServer(s *grpc.Server, srv SimpleGrpcServer)
- type GetStuffRequest
- func (*GetStuffRequest) Descriptor() ([]byte, []int)
- func (m *GetStuffRequest) GetInnerStuff() string
- func (m *GetStuffRequest) GetSensitiveStuff() string
- func (m *GetStuffRequest) GetTimeStuff() string
- func (*GetStuffRequest) ProtoMessage()
- func (m *GetStuffRequest) Reset()
- func (m *GetStuffRequest) String() string
- func (m *GetStuffRequest) XXX_DiscardUnknown()
- func (m *GetStuffRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetStuffRequest) XXX_Merge(src proto.Message)
- func (m *GetStuffRequest) XXX_Size() int
- func (m *GetStuffRequest) XXX_Unmarshal(b []byte) error
- type GetStuffResponse
- func (*GetStuffResponse) Descriptor() ([]byte, []int)
- func (m *GetStuffResponse) GetData() []*Item
- func (*GetStuffResponse) ProtoMessage()
- func (m *GetStuffResponse) Reset()
- func (m *GetStuffResponse) String() string
- func (m *GetStuffResponse) XXX_DiscardUnknown()
- func (m *GetStuffResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetStuffResponse) XXX_Merge(src proto.Message)
- func (m *GetStuffResponse) XXX_Size() int
- func (m *GetStuffResponse) XXX_Unmarshal(b []byte) error
- type Item
- func (*Item) Descriptor() ([]byte, []int)
- func (m *Item) GetA1() string
- func (m *Item) GetA2() string
- func (m *Item) GetName() string
- func (*Item) ProtoMessage()
- func (m *Item) Reset()
- func (m *Item) String() string
- func (m *Item) XXX_DiscardUnknown()
- func (m *Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Item) XXX_Merge(src proto.Message)
- func (m *Item) XXX_Size() int
- func (m *Item) XXX_Unmarshal(b []byte) error
- type SimpleGrpcClient
- type SimpleGrpcServer
- type UnimplementedSimpleGrpcServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSimpleGrpcServer ¶
func RegisterSimpleGrpcServer(s *grpc.Server, srv SimpleGrpcServer)
Types ¶
type GetStuffRequest ¶
type GetStuffRequest struct { InnerStuff string `protobuf:"bytes,1,opt,name=innerStuff,proto3" json:"innerStuff,omitempty"` SensitiveStuff string `protobuf:"bytes,2,opt,name=sensitiveStuff,proto3" json:"sensitiveStuff,omitempty"` TimeStuff string `protobuf:"bytes,3,opt,name=timeStuff,proto3" json:"timeStuff,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetStuffRequest) Descriptor ¶
func (*GetStuffRequest) Descriptor() ([]byte, []int)
func (*GetStuffRequest) GetInnerStuff ¶
func (m *GetStuffRequest) GetInnerStuff() string
func (*GetStuffRequest) GetSensitiveStuff ¶
func (m *GetStuffRequest) GetSensitiveStuff() string
func (*GetStuffRequest) GetTimeStuff ¶
func (m *GetStuffRequest) GetTimeStuff() string
func (*GetStuffRequest) ProtoMessage ¶
func (*GetStuffRequest) ProtoMessage()
func (*GetStuffRequest) Reset ¶
func (m *GetStuffRequest) Reset()
func (*GetStuffRequest) String ¶
func (m *GetStuffRequest) String() string
func (*GetStuffRequest) XXX_DiscardUnknown ¶
func (m *GetStuffRequest) XXX_DiscardUnknown()
func (*GetStuffRequest) XXX_Marshal ¶
func (m *GetStuffRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetStuffRequest) XXX_Merge ¶
func (m *GetStuffRequest) XXX_Merge(src proto.Message)
func (*GetStuffRequest) XXX_Size ¶
func (m *GetStuffRequest) XXX_Size() int
func (*GetStuffRequest) XXX_Unmarshal ¶
func (m *GetStuffRequest) XXX_Unmarshal(b []byte) error
type GetStuffResponse ¶
type GetStuffResponse struct { Data []*Item `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetStuffResponse) Descriptor ¶
func (*GetStuffResponse) Descriptor() ([]byte, []int)
func (*GetStuffResponse) GetData ¶
func (m *GetStuffResponse) GetData() []*Item
func (*GetStuffResponse) ProtoMessage ¶
func (*GetStuffResponse) ProtoMessage()
func (*GetStuffResponse) Reset ¶
func (m *GetStuffResponse) Reset()
func (*GetStuffResponse) String ¶
func (m *GetStuffResponse) String() string
func (*GetStuffResponse) XXX_DiscardUnknown ¶
func (m *GetStuffResponse) XXX_DiscardUnknown()
func (*GetStuffResponse) XXX_Marshal ¶
func (m *GetStuffResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetStuffResponse) XXX_Merge ¶
func (m *GetStuffResponse) XXX_Merge(src proto.Message)
func (*GetStuffResponse) XXX_Size ¶
func (m *GetStuffResponse) XXX_Size() int
func (*GetStuffResponse) XXX_Unmarshal ¶
func (m *GetStuffResponse) XXX_Unmarshal(b []byte) error
type Item ¶
type Item struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` A1 string `protobuf:"bytes,2,opt,name=A1,proto3" json:"A1,omitempty"` A2 string `protobuf:"bytes,3,opt,name=A2,proto3" json:"A2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Item) Descriptor ¶
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) XXX_DiscardUnknown ¶
func (m *Item) XXX_DiscardUnknown()
func (*Item) XXX_Unmarshal ¶
type SimpleGrpcClient ¶
type SimpleGrpcClient interface {
GetStuff(ctx context.Context, in *GetStuffRequest, opts ...grpc.CallOption) (*GetStuffResponse, error)
}
SimpleGrpcClient is the client API for SimpleGrpc service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSimpleGrpcClient ¶
func NewSimpleGrpcClient(cc grpc.ClientConnInterface) SimpleGrpcClient
type SimpleGrpcServer ¶
type SimpleGrpcServer interface {
GetStuff(context.Context, *GetStuffRequest) (*GetStuffResponse, error)
}
SimpleGrpcServer is the server API for SimpleGrpc service.
type UnimplementedSimpleGrpcServer ¶
type UnimplementedSimpleGrpcServer struct { }
UnimplementedSimpleGrpcServer can be embedded to have forward compatible implementations.
func (*UnimplementedSimpleGrpcServer) GetStuff ¶
func (*UnimplementedSimpleGrpcServer) GetStuff(ctx context.Context, req *GetStuffRequest) (*GetStuffResponse, error)
Click to show internal directories.
Click to hide internal directories.