Documentation ¶
Index ¶
- func AccessLogInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- type MongoItem
- type Server
- func (o *Server) Create(ctx context.Context, in *CreateUserRequest) (*CreateUserResponse, error)
- func (o *Server) DbConnect() error
- func (o *Server) DbDisconnect()
- func (o *Server) Delete(ctx context.Context, in *DeleteUserRequest) (*DeleteUserResponse, error)
- func (o *Server) Find(ctx context.Context, in *FindUserRequest) (*FindUserResponse, error)
- func (o *Server) Get(ctx context.Context, in *GetUserRequest) (*GetUserResponse, error)
- func (o *Server) LogOut(ctx context.Context, in *LogOutRequest) (*LogOutResponse, error)
- func (o *Server) SignIn(ctx context.Context, in *SignInRequest) (*SignInResponse, error)
- func (o *Server) SignUp(ctx context.Context, in *SignUpRequest) (*SignUpResponse, error)
- func (o *Server) Update(ctx context.Context, in *UpdateUserRequest) (*UpdateUserResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessLogInterceptor ¶
func AccessLogInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
---------------------------------------------------------------------------------------------------------------------- Middleware ----------------------------------------------------------------------------------------------------------------------
Types ¶
type Server ¶
=========================================================
gRPC server init functions
=========================================================
func (*Server) Create ¶
---------------------------------------------------------------------------------------------------------------------- Create ----------------------------------------------------------------------------------------------------------------------
func (*Server) DbConnect ¶
---------------------------------------------------------------------------------------------------------------------- Подключение/Отключение к БД ----------------------------------------------------------------------------------------------------------------------
func (*Server) DbDisconnect ¶
func (o *Server) DbDisconnect()
func (*Server) Delete ¶
---------------------------------------------------------------------------------------------------------------------- Delete ----------------------------------------------------------------------------------------------------------------------
func (*Server) Find ¶
---------------------------------------------------------------------------------------------------------------------- Find ----------------------------------------------------------------------------------------------------------------------
func (*Server) Get ¶
---------------------------------------------------------------------------------------------------------------------- Get ----------------------------------------------------------------------------------------------------------------------
func (*Server) LogOut ¶
---------------------------------------------------------------------------------------------------------------------- LogOut ----------------------------------------------------------------------------------------------------------------------
func (*Server) SignIn ¶
---------------------------------------------------------------------------------------------------------------------- SignIn ----------------------------------------------------------------------------------------------------------------------
func (*Server) SignUp ¶
---------------------------------------------------------------------------------------------------------------------- SignUp ----------------------------------------------------------------------------------------------------------------------