Documentation ¶
Index ¶
Constants ¶
View Source
const ( time.Hour * 24 * 30 )MaxSessionShareExpiry =
Variables ¶
View Source
var ( ErrNS = errorx.NewNamespace("error.api.user.code") )
View Source
var Module = fx.Options( fx.Provide(NewService), fx.Invoke(registerRouter), )
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService() *Service
func (*Service) NewSessionFromSharingCode ¶
func (s *Service) NewSessionFromSharingCode(codeInHex string) *utils.SessionUser
func (*Service) ShareHandler ¶
@ID userShareSession @Summary Share current session and generate a sharing code @Param request body ShareRequest true "Request body" @Security JwtAuth @Success 200 {object} ShareResponse @Router /user/share/code [post]
func (*Service) SharingCodeFromSession ¶
type ShareRequest ¶
type ShareRequest struct {}
type ShareResponse ¶
type ShareResponse struct {
} Click to show internal directories.
Click to hide internal directories.