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: 13 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 added in v1.3.0

func (s *Server) CreateUser(ctx context.Context, u *api.UserT) (*api.UidT, error)

CreateUser create user.

func (*Server) DeleteUser added in v1.3.0

func (s *Server) DeleteUser(ctx context.Context, uid *api.UidT) (*api.Empty, error)

DeleteUser delete user.

func (*Server) Ping

func (s *Server) Ping(ctx context.Context, req *api.Request) (*api.Reply, error)

Ping ping server.

func (*Server) ReadUser added in v1.3.0

func (s *Server) ReadUser(ctx context.Context, uid *api.UidT) (*api.UserT, error)

ReadUser read user.

func (*Server) Start

func (s *Server) Start()

Start start server.

func (*Server) Stop added in v1.4.0

func (s *Server) Stop()

Stop stop server.

func (*Server) UpdateUser added in v1.3.0

func (s *Server) UpdateUser(ctx context.Context, u *api.UserT) (*api.Empty, error)

UpdateUser update user.

Jump to

Keyboard shortcuts

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