grpc

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server server struct.

func New

func New(cfgpath string, s service.Svc) (*Server, error)

New new server and return.

func (*Server) CreateUser

func (s *Server) CreateUser(ctx context.Context, in *api.UserReq) (*api.UserReply, error)

CreateUser create user.

func (*Server) DeleteUser

func (s *Server) DeleteUser(ctx context.Context, in *api.UserReq) (*api.UserReply, error)

DeleteUser delete user.

func (*Server) Ping

func (s *Server) Ping(ctx context.Context, in *api.PingReq) (*api.PingReply, error)

Ping ping server.

func (*Server) ReadUser

func (s *Server) ReadUser(ctx context.Context, in *api.UserReq) (*api.UserReply, error)

ReadUser read user.

func (*Server) Start

func (s *Server) Start()

Start start server.

func (*Server) Stop

func (s *Server) Stop()

Stop stop server.

func (*Server) UpdateUser

func (s *Server) UpdateUser(ctx context.Context, in *api.UserReq) (*api.UserReply, error)

UpdateUser update user.

Jump to

Keyboard shortcuts

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