proto

package
v0.0.0-...-f53f79a Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterUserInfoServiceServer

func RegisterUserInfoServiceServer(s *grpc.Server, srv UserInfoServiceServer)

Types

type UnimplementedUserInfoServiceServer

type UnimplementedUserInfoServiceServer struct {
}

UnimplementedUserInfoServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserInfoServiceServer) GetUserInfo

type UserInfoServiceClient

type UserInfoServiceClient interface {
	GetUserInfo(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error)
}

UserInfoServiceClient is the client API for UserInfoService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewUserInfoServiceClient

func NewUserInfoServiceClient(cc *grpc.ClientConn) UserInfoServiceClient

type UserInfoServiceServer

type UserInfoServiceServer interface {
	GetUserInfo(context.Context, *UserRequest) (*UserResponse, error)
}

UserInfoServiceServer is the server API for UserInfoService service.

type UserRequest

type UserRequest 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 (*UserRequest) Descriptor

func (*UserRequest) Descriptor() ([]byte, []int)

func (*UserRequest) GetName

func (m *UserRequest) GetName() string

func (*UserRequest) ProtoMessage

func (*UserRequest) ProtoMessage()

func (*UserRequest) Reset

func (m *UserRequest) Reset()

func (*UserRequest) String

func (m *UserRequest) String() string

func (*UserRequest) XXX_DiscardUnknown

func (m *UserRequest) XXX_DiscardUnknown()

func (*UserRequest) XXX_Marshal

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

func (*UserRequest) XXX_Merge

func (m *UserRequest) XXX_Merge(src proto.Message)

func (*UserRequest) XXX_Size

func (m *UserRequest) XXX_Size() int

func (*UserRequest) XXX_Unmarshal

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

type UserResponse

type UserResponse struct {
	Id                   int32    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Age                  int32    `protobuf:"varint,3,opt,name=age,proto3" json:"age,omitempty"`
	Title                []string `protobuf:"bytes,4,rep,name=title,proto3" json:"title,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserResponse) Descriptor

func (*UserResponse) Descriptor() ([]byte, []int)

func (*UserResponse) GetAge

func (m *UserResponse) GetAge() int32

func (*UserResponse) GetId

func (m *UserResponse) GetId() int32

func (*UserResponse) GetName

func (m *UserResponse) GetName() string

func (*UserResponse) GetTitle

func (m *UserResponse) GetTitle() []string

func (*UserResponse) ProtoMessage

func (*UserResponse) ProtoMessage()

func (*UserResponse) Reset

func (m *UserResponse) Reset()

func (*UserResponse) String

func (m *UserResponse) String() string

func (*UserResponse) XXX_DiscardUnknown

func (m *UserResponse) XXX_DiscardUnknown()

func (*UserResponse) XXX_Marshal

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

func (*UserResponse) XXX_Merge

func (m *UserResponse) XXX_Merge(src proto.Message)

func (*UserResponse) XXX_Size

func (m *UserResponse) XXX_Size() int

func (*UserResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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