Documentation
¶
Index ¶
- func RegisterNameServer(s *grpc.Server, srv NameServer)
- type NameClient
- type NameServer
- type Req
- func (*Req) Descriptor() ([]byte, []int)
- func (m *Req) GetName() string
- func (*Req) ProtoMessage()
- func (m *Req) Reset()
- func (m *Req) String() string
- func (m *Req) XXX_DiscardUnknown()
- func (m *Req) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Req) XXX_Merge(src proto.Message)
- func (m *Req) XXX_Size() int
- func (m *Req) XXX_Unmarshal(b []byte) error
- type Res
- func (*Res) Descriptor() ([]byte, []int)
- func (m *Res) GetName() string
- func (*Res) ProtoMessage()
- func (m *Res) Reset()
- func (m *Res) String() string
- func (m *Res) XXX_DiscardUnknown()
- func (m *Res) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Res) XXX_Merge(src proto.Message)
- func (m *Res) XXX_Size() int
- func (m *Res) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterNameServer ¶
func RegisterNameServer(s *grpc.Server, srv NameServer)
Types ¶
type NameClient ¶
type NameClient interface { ReqName(ctx context.Context, in *Req, opts ...grpc.CallOption) (*Res, error) ReqVersion(ctx context.Context, in *Req, opts ...grpc.CallOption) (*Res, error) }
NameClient is the client API for Name service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewNameClient ¶
func NewNameClient(cc *grpc.ClientConn) NameClient
type NameServer ¶
type NameServer interface { ReqName(context.Context, *Req) (*Res, error) ReqVersion(context.Context, *Req) (*Res, error) }
NameServer is the server API for Name service.
type Req ¶
type Req struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Req) Descriptor ¶
func (*Req) ProtoMessage ¶
func (*Req) ProtoMessage()
func (*Req) XXX_DiscardUnknown ¶
func (m *Req) XXX_DiscardUnknown()
func (*Req) XXX_Unmarshal ¶
type Res ¶
type Res struct { Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Res) Descriptor ¶
func (*Res) ProtoMessage ¶
func (*Res) ProtoMessage()
func (*Res) XXX_DiscardUnknown ¶
func (m *Res) XXX_DiscardUnknown()
func (*Res) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.