Documentation ¶
Index ¶
- func ProvideRemoteSetup(handler *Handler) func(server *grpc.Server)
- type Handler
- func (h *Handler) AddUsers(ctx context.Context, input *proto.UserInput) (*proto.UserResponse, error)
- func (h *Handler) CountUsers(ctx context.Context, filter *proto.UserFilter) (r *proto.UserResponse, err error)
- func (h Handler) DeleteUsers(ctx context.Context, filter *proto.UserFilter) (*proto.UserResponse, error)
- func (h *Handler) EditUsers(ctx context.Context, input *proto.UserInput) (*proto.UserResponse, error)
- func (h *Handler) GenerateToken(ctx context.Context, user *proto.User) (resp *proto.AuthToken, err error)
- func (h *Handler) GetTheme(ctx context.Context, filter *proto.UserFilter) (*proto.UserTheme, error)
- func (h *Handler) GetUsers(ctx context.Context, filter *proto.UserFilter) (r *proto.UserResponse, err error)
- func (h *Handler) Guest(ctx context.Context, access *proto.AccessKey) (*proto.AuthToken, error)
- func (h *Handler) Like(ctx context.Context, request *proto.LikeRequest) (resp *proto.LikeResponse, err error)
- func (h *Handler) Login(ctx context.Context, user *proto.User) (resp *proto.AuthToken, err error)
- func (h *Handler) Logout(ctx context.Context, token *proto.AuthToken) (resp *proto.AuthToken, err error)
- func (h *Handler) ProvideAccessRoles() meta.AccessConfig
- func (h *Handler) ProvideAuthKey() *rsa.PublicKey
- func (h *Handler) Refresh(ctx context.Context, token *proto.AuthToken) (resp *proto.AuthToken, err error)
- func (h *Handler) Remote(ctx context.Context, user *proto.User) (resp *proto.AuthToken, err error)
- func (h *Handler) SendEmailConfirmation(ctx context.Context, request *proto.MailRequest) (resp *common.CommonResponse, err error)
- func (h *Handler) SendNotification(ctx context.Context, request *proto.MailRequest) (resp *common.CommonResponse, err error)
- func (h *Handler) SendResetPassword(ctx context.Context, request *proto.MailRequest) (resp *common.CommonResponse, err error)
- func (h *Handler) SignUp(ctx context.Context, user *proto.User) (resp *proto.AuthToken, err error)
- func (h *Handler) Subscribe(ctx context.Context, request *proto.SubscribeRequest) (resp *common.CommonResponse, err error)
- func (h *Handler) Unlike(ctx context.Context, request *proto.LikeRequest) (resp *proto.LikeResponse, err error)
- func (h *Handler) Unsubscribe(ctx context.Context, request *proto.SubscribeRequest) (resp *common.CommonResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(service service.UserService, auth service.AuthService, mail service.MailService, interact service.InteractService) *Handler
func (*Handler) AddUsers ¶
func (*Handler) CountUsers ¶
func (h *Handler) CountUsers(ctx context.Context, filter *proto.UserFilter) (r *proto.UserResponse, err error)
func (Handler) DeleteUsers ¶
func (h Handler) DeleteUsers(ctx context.Context, filter *proto.UserFilter) (*proto.UserResponse, error)
func (*Handler) EditUsers ¶
func (*Handler) GenerateToken ¶
func (*Handler) GetTheme ¶
func (*Handler) GetUsers ¶
func (h *Handler) GetUsers(ctx context.Context, filter *proto.UserFilter) (r *proto.UserResponse, err error)
func (*Handler) Guest ¶
func (*Handler) Like ¶
func (h *Handler) Like(ctx context.Context, request *proto.LikeRequest) (resp *proto.LikeResponse, err error)
func (*Handler) Login ¶
func (*Handler) Logout ¶
func (*Handler) ProvideAccessRoles ¶
func (h *Handler) ProvideAccessRoles() meta.AccessConfig
func (*Handler) Refresh ¶
func (*Handler) Remote ¶
func (*Handler) SendEmailConfirmation ¶
func (h *Handler) SendEmailConfirmation(ctx context.Context, request *proto.MailRequest) (resp *common.CommonResponse, err error)
func (*Handler) SendNotification ¶
func (h *Handler) SendNotification(ctx context.Context, request *proto.MailRequest) (resp *common.CommonResponse, err error)
func (*Handler) SendResetPassword ¶
func (h *Handler) SendResetPassword(ctx context.Context, request *proto.MailRequest) (resp *common.CommonResponse, err error)
func (*Handler) SignUp ¶
func (*Handler) Subscribe ¶
func (h *Handler) Subscribe(ctx context.Context, request *proto.SubscribeRequest) (resp *common.CommonResponse, err error)
func (*Handler) Unlike ¶
func (h *Handler) Unlike(ctx context.Context, request *proto.LikeRequest) (resp *proto.LikeResponse, err error)
func (*Handler) Unsubscribe ¶
func (h *Handler) Unsubscribe(ctx context.Context, request *proto.SubscribeRequest) (resp *common.CommonResponse, err error)
Click to show internal directories.
Click to hide internal directories.