user

package
v1.10.35 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package user is a generated protocol buffer package.

It is generated from these files:

user.proto

It has these top-level messages:

UserRequest
UserResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterUserServer

func RegisterUserServer(s *grpc.Server, srv UserServer)

Types

type UserClient

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

func NewUserClient

func NewUserClient(cc *grpc.ClientConn) UserClient

type UserRequest

type UserRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

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

type UserResponse

type UserResponse struct {
	Response string `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}

func (*UserResponse) Descriptor

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

func (*UserResponse) GetResponse

func (m *UserResponse) GetResponse() string

func (*UserResponse) ProtoMessage

func (*UserResponse) ProtoMessage()

func (*UserResponse) Reset

func (m *UserResponse) Reset()

func (*UserResponse) String

func (m *UserResponse) String() string

type UserServer

type UserServer interface {
	GetGrade(context.Context, *UserRequest) (*UserResponse, error)
}

Jump to

Keyboard shortcuts

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