api

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Req) GetName

func (m *Req) GetName() string

func (*Req) ProtoMessage

func (*Req) ProtoMessage()

func (*Req) Reset

func (m *Req) Reset()

func (*Req) String

func (m *Req) String() string

func (*Req) XXX_DiscardUnknown

func (m *Req) XXX_DiscardUnknown()

func (*Req) XXX_Marshal

func (m *Req) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Req) XXX_Merge

func (dst *Req) XXX_Merge(src proto.Message)

func (*Req) XXX_Size

func (m *Req) XXX_Size() int

func (*Req) XXX_Unmarshal

func (m *Req) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Res) GetName

func (m *Res) GetName() string

func (*Res) ProtoMessage

func (*Res) ProtoMessage()

func (*Res) Reset

func (m *Res) Reset()

func (*Res) String

func (m *Res) String() string

func (*Res) XXX_DiscardUnknown

func (m *Res) XXX_DiscardUnknown()

func (*Res) XXX_Marshal

func (m *Res) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Res) XXX_Merge

func (dst *Res) XXX_Merge(src proto.Message)

func (*Res) XXX_Size

func (m *Res) XXX_Size() int

func (*Res) XXX_Unmarshal

func (m *Res) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL