proto

package
v0.0.0-...-2926792 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterStudentProtoServiceServer

func RegisterStudentProtoServiceServer(s *grpc.Server, srv StudentProtoServiceServer)

Types

type MyRequest

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

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

func (*MyRequest) GetName

func (m *MyRequest) GetName() string

func (*MyRequest) ProtoMessage

func (*MyRequest) ProtoMessage()

func (*MyRequest) Reset

func (m *MyRequest) Reset()

func (*MyRequest) String

func (m *MyRequest) String() string

func (*MyRequest) XXX_DiscardUnknown

func (m *MyRequest) XXX_DiscardUnknown()

func (*MyRequest) XXX_Marshal

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

func (*MyRequest) XXX_Merge

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

func (*MyRequest) XXX_Size

func (m *MyRequest) XXX_Size() int

func (*MyRequest) XXX_Unmarshal

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

type MyResponse

type MyResponse struct {
	Realname             string   `protobuf:"bytes,2,opt,name=realname,proto3" json:"realname,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MyResponse) Descriptor

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

func (*MyResponse) GetRealname

func (m *MyResponse) GetRealname() string

func (*MyResponse) ProtoMessage

func (*MyResponse) ProtoMessage()

func (*MyResponse) Reset

func (m *MyResponse) Reset()

func (*MyResponse) String

func (m *MyResponse) String() string

func (*MyResponse) XXX_DiscardUnknown

func (m *MyResponse) XXX_DiscardUnknown()

func (*MyResponse) XXX_Marshal

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

func (*MyResponse) XXX_Merge

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

func (*MyResponse) XXX_Size

func (m *MyResponse) XXX_Size() int

func (*MyResponse) XXX_Unmarshal

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

type StudentProtoServiceClient

type StudentProtoServiceClient interface {
	GetName(ctx context.Context, in *MyRequest, opts ...grpc.CallOption) (*MyResponse, error)
}

StudentProtoServiceClient is the client API for StudentProtoService service.

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

func NewStudentProtoServiceClient

func NewStudentProtoServiceClient(cc *grpc.ClientConn) StudentProtoServiceClient

type StudentProtoServiceServer

type StudentProtoServiceServer interface {
	GetName(context.Context, *MyRequest) (*MyResponse, error)
}

StudentProtoServiceServer is the server API for StudentProtoService service.

type UnimplementedStudentProtoServiceServer

type UnimplementedStudentProtoServiceServer struct {
}

UnimplementedStudentProtoServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedStudentProtoServiceServer) GetName

Jump to

Keyboard shortcuts

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