grade

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 RegisterGradeServer

func RegisterGradeServer(s *grpc.Server, srv GradeServer)

Types

type GradeClient

type GradeClient interface {
	QueryGrade(ctx context.Context, in *GradeRequest, opts ...grpc.CallOption) (*GradeResponse, error)
}

GradeClient is the client API for Grade service.

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

func NewGradeClient

func NewGradeClient(cc *grpc.ClientConn) GradeClient

type GradeRequest

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

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

func (*GradeRequest) GetId

func (m *GradeRequest) GetId() string

func (*GradeRequest) ProtoMessage

func (*GradeRequest) ProtoMessage()

func (*GradeRequest) Reset

func (m *GradeRequest) Reset()

func (*GradeRequest) String

func (m *GradeRequest) String() string

func (*GradeRequest) XXX_DiscardUnknown

func (m *GradeRequest) XXX_DiscardUnknown()

func (*GradeRequest) XXX_Marshal

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

func (*GradeRequest) XXX_Merge

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

func (*GradeRequest) XXX_Size

func (m *GradeRequest) XXX_Size() int

func (*GradeRequest) XXX_Unmarshal

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

type GradeResponse

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

func (*GradeResponse) Descriptor

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

func (*GradeResponse) GetGrade

func (m *GradeResponse) GetGrade() string

func (*GradeResponse) ProtoMessage

func (*GradeResponse) ProtoMessage()

func (*GradeResponse) Reset

func (m *GradeResponse) Reset()

func (*GradeResponse) String

func (m *GradeResponse) String() string

func (*GradeResponse) XXX_DiscardUnknown

func (m *GradeResponse) XXX_DiscardUnknown()

func (*GradeResponse) XXX_Marshal

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

func (*GradeResponse) XXX_Merge

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

func (*GradeResponse) XXX_Size

func (m *GradeResponse) XXX_Size() int

func (*GradeResponse) XXX_Unmarshal

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

type GradeServer

type GradeServer interface {
	QueryGrade(context.Context, *GradeRequest) (*GradeResponse, error)
}

GradeServer is the server API for Grade service.

Jump to

Keyboard shortcuts

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