user

package
v0.0.0-...-b2a1d49 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 5 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 {
	rpc.UnsafeServiceServer

	Log *zap.Logger
}

func NewServer

func NewServer() (*Server, error)

NewServer new a rpc service.

func (*Server) Create

func (s *Server) Create(ctx context.Context, in *rpc.CreateRequest) (*rpc.CreateResponse, error)

Create implements user.ServiceServer

func (*Server) Delete

func (s *Server) Delete(ctx context.Context, in *rpc.DeleteRequest) (*rpc.DeleteResponse, error)

Delete implements user.ServiceServer

func (*Server) Info

func (s *Server) Info(ctx context.Context, in *rpc.InfoRequest) (*rpc.InfoResponse, error)

Info implements user.ServiceServer

func (*Server) List

func (s *Server) List(ctx context.Context, in *rpc.ListRequest) (*rpc.ListResponse, error)

List implements user.ServiceServer

func (*Server) Update

func (s *Server) Update(ctx context.Context, in *rpc.UpdateRequest) (*rpc.UpdateResponse, error)

Update implements user.ServiceServer

func (*Server) UpdateNickname

UpdateNickname implements user.ServiceServer

Jump to

Keyboard shortcuts

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