Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnonymousContext ¶
type AnonymousContext struct {
BaseContext
}
type AuthorizedContext ¶
type AuthorizedContext struct { BaseContext auth.AuthenticatedUser }
func (AuthorizedContext) ToAnonumousContext ¶
func (ac AuthorizedContext) ToAnonumousContext() *AnonymousContext
type BaseContext ¶
type BaseContext struct { Ctx context.Context Log logutil.Log Lctx logutil.Context DB *gorm.DB StartedAt time.Time SessCtx *session.RequestContext }
func (BaseContext) Logger ¶
func (ctx BaseContext) Logger() logutil.Log
func (BaseContext) RequestStartedAt ¶
func (ctx BaseContext) RequestStartedAt() time.Time
func (BaseContext) SessContext ¶
func (ctx BaseContext) SessContext() *session.RequestContext
type BodyRepo ¶
func (BodyRepo) FillLogContext ¶
type InternalContext ¶
type InternalContext struct {
BaseContext
}
InternalContext used for internal requests and provides internal authorization
type Org ¶
func (Org) FillLogContext ¶
type OrgID ¶
type OrgID struct {
OrgID uint `request:"org_id,urlPart,"`
}
func (OrgID) FillLogContext ¶
type OrgSubID ¶
func (OrgSubID) FillLogContext ¶
type Repo ¶
type Repo struct { Provider string `request:",urlPart,"` Owner string `request:",urlPart,"` Name string `request:",urlPart,"` }
func (Repo) FillLogContext ¶
func (Repo) FullNameWithProvider ¶
type RepoID ¶
type RepoID struct {
ID uint `request:"repoID,urlPart,"`
}
func (RepoID) FillLogContext ¶
type ShortRepo ¶
func (ShortRepo) FillLogContext ¶
Click to show internal directories.
Click to hide internal directories.