Documentation
¶
Index ¶
- type Impl
- func (i *Impl) ConfigGet(ctx context.Context, params *api.SessionConfigGetParams, ...) (*api.SessionConfigGetRsp, error)
- func (i *Impl) GetCurrentUser(shortSession string) (*entity.User, error)
- func (i *Impl) LongSessionGet(ctx context.Context, sessionID string, editors ...api.RequestEditorFn) (*api.LongSessionGetRsp, error)
- func (i *Impl) LongSessionRevoke(ctx context.Context, sessionID string, req api.LongSessionRevokeReq, ...) error
- func (i *Impl) ValidateShortSessionValue(shortSession string) (*entity.User, error)
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct {
// contains filtered or unexported fields
}
func (*Impl) ConfigGet ¶ added in v0.5.0
func (i *Impl) ConfigGet(ctx context.Context, params *api.SessionConfigGetParams, editors ...api.RequestEditorFn) (*api.SessionConfigGetRsp, error)
ConfigGet retrieves session config by projectID inferred from authentication
func (*Impl) GetCurrentUser ¶
func (*Impl) LongSessionGet ¶ added in v0.5.0
func (i *Impl) LongSessionGet(ctx context.Context, sessionID string, editors ...api.RequestEditorFn) (*api.LongSessionGetRsp, error)
LongSessionGet gets a long session by sessionID
func (*Impl) LongSessionRevoke ¶ added in v0.5.0
func (i *Impl) LongSessionRevoke(ctx context.Context, sessionID string, req api.LongSessionRevokeReq, editors ...api.RequestEditorFn) error
LongSessionRevoke revokes an active long session by sessionID
type Session ¶
type Session interface {
ValidateShortSessionValue(shortSession string) (*entity.User, error)
GetCurrentUser(shortSession string) (*entity.User, error)
ConfigGet(ctx context.Context, params *api.SessionConfigGetParams, editors ...api.RequestEditorFn) (*api.SessionConfigGetRsp, error)
LongSessionRevoke(ctx context.Context, sessionID string, req api.LongSessionRevokeReq, editors ...api.RequestEditorFn) error
LongSessionGet(ctx context.Context, sessionID string, editors ...api.RequestEditorFn) (*api.LongSessionGetRsp, error)
}
Click to show internal directories.
Click to hide internal directories.