student

package
v0.0.0-...-aa2dd7b Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterStudentServer

func RegisterStudentServer(s *grpc.Server, srv StudentServer)

Types

type StudentClient

type StudentClient interface {
	QueryStudent(ctx context.Context, in *StudentRequest, opts ...grpc.CallOption) (*StudentResponse, error)
}

StudentClient is the client API for Student service.

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

func NewStudentClient

func NewStudentClient(cc *grpc.ClientConn) StudentClient

type StudentRequest

type StudentRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StudentRequest) Descriptor

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

func (*StudentRequest) GetId

func (m *StudentRequest) GetId() string

func (*StudentRequest) ProtoMessage

func (*StudentRequest) ProtoMessage()

func (*StudentRequest) Reset

func (m *StudentRequest) Reset()

func (*StudentRequest) String

func (m *StudentRequest) String() string

func (*StudentRequest) XXX_DiscardUnknown

func (m *StudentRequest) XXX_DiscardUnknown()

func (*StudentRequest) XXX_Marshal

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

func (*StudentRequest) XXX_Merge

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

func (*StudentRequest) XXX_Size

func (m *StudentRequest) XXX_Size() int

func (*StudentRequest) XXX_Unmarshal

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

type StudentResponse

type StudentResponse struct {
	Sname                string   `protobuf:"bytes,1,opt,name=sname,proto3" json:"sname,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StudentResponse) Descriptor

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

func (*StudentResponse) GetSname

func (m *StudentResponse) GetSname() string

func (*StudentResponse) ProtoMessage

func (*StudentResponse) ProtoMessage()

func (*StudentResponse) Reset

func (m *StudentResponse) Reset()

func (*StudentResponse) String

func (m *StudentResponse) String() string

func (*StudentResponse) XXX_DiscardUnknown

func (m *StudentResponse) XXX_DiscardUnknown()

func (*StudentResponse) XXX_Marshal

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

func (*StudentResponse) XXX_Merge

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

func (*StudentResponse) XXX_Size

func (m *StudentResponse) XXX_Size() int

func (*StudentResponse) XXX_Unmarshal

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

type StudentServer

type StudentServer interface {
	QueryStudent(context.Context, *StudentRequest) (*StudentResponse, error)
}

StudentServer is the server API for Student service.

Jump to

Keyboard shortcuts

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