Documentation ¶
Index ¶
- func Start(ip string, port int, usecase usecase.Users, logger *slog.Logger, ...)
- type UsersServer
- func (us *UsersServer) AddUser(ctx context.Context, r *connect.Request[usersv1.AddUserRequest]) (*connect.Response[usersv1.AddUserResponse], error)
- func (us *UsersServer) EditUser(ctx context.Context, r *connect.Request[usersv1.EditUserRequest]) (*connect.Response[usersv1.EditUserResponse], error)
- func (us *UsersServer) GetAllowedEmojis(ctx context.Context, r *connect.Request[usersv1.GetAllowedEmojisRequest]) (*connect.Response[usersv1.GetAllowedEmojisResponse], error)
- func (us *UsersServer) GetUser(ctx context.Context, r *connect.Request[usersv1.GetUserRequest]) (*connect.Response[usersv1.GetUserResponse], error)
- func (us *UsersServer) GetUsers(ctx context.Context, r *connect.Request[usersv1.GetUsersRequest]) (*connect.Response[usersv1.GetUsersResponse], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UsersServer ¶
type UsersServer struct { usersv1connect.UnimplementedUsersServiceHandler // contains filtered or unexported fields }
func (*UsersServer) AddUser ¶
func (us *UsersServer) AddUser(ctx context.Context, r *connect.Request[usersv1.AddUserRequest]) (*connect.Response[usersv1.AddUserResponse], error)
func (*UsersServer) EditUser ¶ added in v0.6.0
func (us *UsersServer) EditUser(ctx context.Context, r *connect.Request[usersv1.EditUserRequest]) (*connect.Response[usersv1.EditUserResponse], error)
func (*UsersServer) GetAllowedEmojis ¶
func (us *UsersServer) GetAllowedEmojis(ctx context.Context, r *connect.Request[usersv1.GetAllowedEmojisRequest]) (*connect.Response[usersv1.GetAllowedEmojisResponse], error)
func (*UsersServer) GetUser ¶ added in v0.6.1
func (us *UsersServer) GetUser(ctx context.Context, r *connect.Request[usersv1.GetUserRequest]) (*connect.Response[usersv1.GetUserResponse], error)
func (*UsersServer) GetUsers ¶ added in v0.6.1
func (us *UsersServer) GetUsers(ctx context.Context, r *connect.Request[usersv1.GetUsersRequest]) (*connect.Response[usersv1.GetUsersResponse], error)
Click to show internal directories.
Click to hide internal directories.