Documentation ¶
Index ¶
- Constants
- type AnalyticsRow
- type Domain
- func (d *Domain) Health(in *Health_In) (out Health_Out)
- func (d *Domain) InitClickhouseBuffer(preparators map[Ch.TableName]chBuffer.Preparator)
- func (d *Domain) LoadHello(_ *LoadHello_In) (out LoadHello_Out)
- func (d *Domain) LoadTestRead(_ *LoadTestRead_In) (out LoadTestRead_Out)
- func (d *Domain) LoadTestWrite(_ *LoadTestWrite_In) (out LoadTestWrite_Out)
- func (d *Domain) Statistics(row AnalyticsRow)
- func (d *Domain) UserChangeEmail(in *UserChangeEmail_In) (out UserChangeEmail_Out)
- func (d *Domain) UserChangePassword(in *UserChangePassword_In) (out UserChangePassword_Out)
- func (d *Domain) UserConfirmEmail(in *UserConfirmEmail_In) (out UserConfirmEmail_Out)
- func (d *Domain) UserExternalLogin(in *UserExternalLogin_In) (out UserExternalLogin_Out)
- func (d *Domain) UserForgotPassword(in *UserForgotPassword_In) (out UserForgotPassword_Out)
- func (d *Domain) UserList(in *UserList_In) (out UserList_Out)
- func (d *Domain) UserLogin(in *UserLogin_In) (out UserLogin_Out)
- func (d *Domain) UserLogout(in *UserLogout_In) (out UserLogout_Out)
- func (d *Domain) UserOauth(in *UserOauth_In) (out UserOauth_Out)
- func (d *Domain) UserProfile(in *UserProfile_In) (out UserProfile_Out)
- func (d *Domain) UserRegister(in *UserRegister_In) (out UserRegister_Out)
- func (d *Domain) UserResetPassword(in *UserResetPassword_In) (out UserResetPassword_Out)
- func (d *Domain) WaitInterrupt()
- func (d *Domain) XXX(in *XXX_In) (out XXX_Out)
- type Health_In
- type Health_Out
- type LoadHello_In
- type LoadHello_Out
- type LoadTestRead_In
- type LoadTestRead_Out
- type LoadTestWrite_In
- type LoadTestWrite_Out
- type RequestCommon
- func (l *RequestCommon) FromCli(file *os.File, ctx context.Context)
- func (l *RequestCommon) FromFiberCtx(ctx *fiber.Ctx, tracerCtx context.Context)
- func (i *RequestCommon) TimeNow() time.Time
- func (l *RequestCommon) ToCli(file *os.File, out any)
- func (l *RequestCommon) ToFiberCtx(ctx *fiber.Ctx, out any) error
- func (l *RequestCommon) UnixNow() int64
- type ResponseCommon
- type UserChangeEmail_In
- type UserChangeEmail_Out
- type UserChangePassword_In
- type UserChangePassword_Out
- type UserConfirmEmail_In
- type UserConfirmEmail_Out
- type UserExternalLogin_In
- type UserExternalLogin_Out
- type UserForgotPassword_In
- type UserForgotPassword_Out
- type UserList_In
- type UserList_Out
- type UserLogin_In
- type UserLogin_Out
- type UserLogout_In
- type UserLogout_Out
- type UserOauth_In
- type UserOauth_Out
- type UserProfile_In
- type UserProfile_Out
- type UserRegister_In
- type UserRegister_Out
- type UserResetPassword_In
- type UserResetPassword_Out
- type XXX_In
- type XXX_Out
Constants ¶
View Source
const ( Google = `google` Yahoo = `yahoo` Github = `github` Steam = `steam` Twitter = `twitter` Facebook = `facebook` Email = `email` )
View Source
const Health_Url = `/Health`
View Source
const LoadHello_Url = `/LoadHello`
View Source
const LoadTestRead_Url = `/LoadTestRead`
View Source
const LoadTestWrite_Url = `/LoadTestWrite`
View Source
const UserChangeEmail_Url = `/UserChangeEmail`
View Source
const UserChangePassword_Url = `/UserChangePassword`
View Source
const UserConfirmEmail_Url = `/UserConfirmEmail`
View Source
const UserExternalLogin_Url = `/UserExternalLogin`
View Source
const UserForgotPassword_Url = `/UserForgotPassword`
View Source
const UserList_Url = `/UserList`
View Source
const UserLogin_Url = `/UserLogin`
View Source
const UserLogout_Url = `/UserLogout`
View Source
const UserOauth_Url = `/UserOauth`
View Source
const UserProfile_Url = `/UserProfile`
View Source
const UserRegister_Url = `/UserRegister`
View Source
const UserResetPassword_Url = `/UserResetPassword`
View Source
const XXX_Url = `/XXX`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyticsRow ¶
type Domain ¶
type Domain struct { // add dependencies (tarantool, clickhouse, meilisearch) Taran *Tt.Adapter Click *Ch.Adapter // contains filtered or unexported fields }
func (*Domain) Health ¶
func (d *Domain) Health(in *Health_In) (out Health_Out)
func (*Domain) InitClickhouseBuffer ¶
func (d *Domain) InitClickhouseBuffer(preparators map[Ch.TableName]chBuffer.Preparator)
func (*Domain) LoadHello ¶
func (d *Domain) LoadHello(_ *LoadHello_In) (out LoadHello_Out)
func (*Domain) LoadTestRead ¶
func (d *Domain) LoadTestRead(_ *LoadTestRead_In) (out LoadTestRead_Out)
func (*Domain) LoadTestWrite ¶
func (d *Domain) LoadTestWrite(_ *LoadTestWrite_In) (out LoadTestWrite_Out)
func (*Domain) Statistics ¶
func (d *Domain) Statistics(row AnalyticsRow)
func (*Domain) UserChangeEmail ¶
func (d *Domain) UserChangeEmail(in *UserChangeEmail_In) (out UserChangeEmail_Out)
func (*Domain) UserChangePassword ¶
func (d *Domain) UserChangePassword(in *UserChangePassword_In) (out UserChangePassword_Out)
func (*Domain) UserConfirmEmail ¶
func (d *Domain) UserConfirmEmail(in *UserConfirmEmail_In) (out UserConfirmEmail_Out)
func (*Domain) UserExternalLogin ¶
func (d *Domain) UserExternalLogin(in *UserExternalLogin_In) (out UserExternalLogin_Out)
func (*Domain) UserForgotPassword ¶
func (d *Domain) UserForgotPassword(in *UserForgotPassword_In) (out UserForgotPassword_Out)
func (*Domain) UserList ¶
func (d *Domain) UserList(in *UserList_In) (out UserList_Out)
func (*Domain) UserLogin ¶
func (d *Domain) UserLogin(in *UserLogin_In) (out UserLogin_Out)
func (*Domain) UserLogout ¶
func (d *Domain) UserLogout(in *UserLogout_In) (out UserLogout_Out)
func (*Domain) UserOauth ¶
func (d *Domain) UserOauth(in *UserOauth_In) (out UserOauth_Out)
func (*Domain) UserProfile ¶
func (d *Domain) UserProfile(in *UserProfile_In) (out UserProfile_Out)
func (*Domain) UserRegister ¶
func (d *Domain) UserRegister(in *UserRegister_In) (out UserRegister_Out)
func (*Domain) UserResetPassword ¶
func (d *Domain) UserResetPassword(in *UserResetPassword_In) (out UserResetPassword_Out)
func (*Domain) WaitInterrupt ¶
func (d *Domain) WaitInterrupt()
type Health_In ¶
type Health_In struct {
RequestCommon
}
type Health_Out ¶
type Health_Out struct { ResponseCommon CpuPercent float32 `json:"cpuPercent" form:"cpuPercent" query:"cpuPercent" long:"cpuPercent" msg:"cpuPercent"` RamPercent float32 `json:"ramPercent" form:"ramPercent" query:"ramPercent" long:"ramPercent" msg:"ramPercent"` DiskPercent float32 `json:"diskPercent" form:"diskPercent" query:"diskPercent" long:"diskPercent" msg:"diskPercent"` }
type LoadHello_In ¶
type LoadHello_In struct {
RequestCommon
}
type LoadHello_Out ¶
type LoadHello_Out struct { ResponseCommon Hello string `json:"hello" form:"hello" query:"hello" long:"hello" msg:"hello"` }
type LoadTestRead_In ¶
type LoadTestRead_In struct { RequestCommon Id uint64 `json:"id,string" form:"id" query:"id" long:"id" msg:"id"` }
type LoadTestRead_Out ¶
type LoadTestRead_Out struct { ResponseCommon User rqAuth.Users `json:"user" form:"user" query:"user" long:"user" msg:"user"` }
type LoadTestWrite_In ¶
type LoadTestWrite_In struct {
RequestCommon
}
type LoadTestWrite_Out ¶
type LoadTestWrite_Out struct { ResponseCommon Ok bool `json:"ok" form:"ok" query:"ok" long:"ok" msg:"ok"` Id uint64 `json:"id,string" form:"id" query:"id" long:"id" msg:"id"` }
type RequestCommon ¶
type RequestCommon struct { TracerContext context.Context `json:"-" form:"tracerContext" query:"tracerContext" long:"tracerContext" msg:"-"` RequestId uint64 `json:"requestId,string" form:"requestId" query:"requestId" long:"requestId" msg:"requestId"` SessionToken string `json:"sessionToken" form:"sessionToken" query:"sessionToken" long:"sessionToken" msg:"sessionToken"` UserAgent string `json:"userAgent" form:"userAgent" query:"userAgent" long:"userAgent" msg:"userAgent"` IpAddress string `json:"ipAddress" form:"ipAddress" query:"ipAddress" long:"ipAddress" msg:"ipAddress"` OutputFormat string `json:"outputFormat,omitempty" form:"outputFormat" query:"outputFormat" long:"outputFormat" msg:"outputFormat"` // defaults to json Uploads map[string]string `json:"uploads,omitempty" form:"uploads" query:"uploads" long:"uploads" msg:"uploads"` // form key and temporary file path Now int64 `json:"-" form:"now" query:"now" long:"now" msg:"-"` Debug bool `json:"debug,omitempty" form:"debug" query:"debug" long:"debug" msg:"debug"` Header string `json:"header,omitempty" form:"header" query:"header" long:"header" msg:"header"` RawBody string `json:"rawBody,omitempty" form:"rawBody" query:"rawBody" long:"rawBody" msg:"rawBody"` Host string `json:"host" form:"host" query:"host" long:"host" msg:"host"` }
func AdminRC ¶
func AdminRC() RequestCommon
func EmptyRC ¶
func EmptyRC() RequestCommon
func ExpiredRC ¶
func ExpiredRC() RequestCommon
func NewRC ¶
func NewRC(sessionToken string) RequestCommon
func (*RequestCommon) FromFiberCtx ¶
func (l *RequestCommon) FromFiberCtx(ctx *fiber.Ctx, tracerCtx context.Context)
func (*RequestCommon) TimeNow ¶
func (i *RequestCommon) TimeNow() time.Time
func (*RequestCommon) ToFiberCtx ¶
func (l *RequestCommon) ToFiberCtx(ctx *fiber.Ctx, out any) error
func (*RequestCommon) UnixNow ¶
func (l *RequestCommon) UnixNow() int64
type ResponseCommon ¶
type ResponseCommon struct { SessionToken string `json:"sessionToken" form:"sessionToken" query:"sessionToken" long:"sessionToken" msg:"sessionToken"` Error string `json:"error" form:"error" query:"error" long:"error" msg:"error"` StatusCode int `json:"status" form:"statusCode" query:"statusCode" long:"statusCode" msg:"statusCode"` Debug any `json:"debug,omitempty" form:"debug" query:"debug" long:"debug" msg:"debug"` Redirect string `json:"redirect,omitempty" form:"redirect" query:"redirect" long:"redirect" msg:"redirect"` }
func (*ResponseCommon) HasError ¶
func (o *ResponseCommon) HasError() bool
func (*ResponseCommon) SetError ¶
func (o *ResponseCommon) SetError(code int, errStr string)
func (*ResponseCommon) SetRedirect ¶
func (o *ResponseCommon) SetRedirect(to string)
func (*ResponseCommon) ToCli ¶
func (l *ResponseCommon) ToCli(file *os.File)
func (*ResponseCommon) ToFiberCtx ¶
func (l *ResponseCommon) ToFiberCtx(ctx *fiber.Ctx, inRc *RequestCommon, in any)
type UserChangeEmail_In ¶
type UserChangeEmail_In struct {
RequestCommon
}
type UserChangeEmail_Out ¶
type UserChangeEmail_Out struct {
ResponseCommon
}
type UserChangePassword_In ¶
type UserChangePassword_In struct { RequestCommon Password string `json:"password" form:"password" query:"password" long:"password" msg:"password"` NewPassword string `json:"newPassowrd" form:"newPassword" query:"newPassword" long:"newPassword" msg:"newPassword"` }
type UserChangePassword_Out ¶
type UserChangePassword_Out struct { ResponseCommon UpdatedAt int64 `json:"updatedAt" form:"updatedAt" query:"updatedAt" long:"updatedAt" msg:"updatedAt"` }
type UserConfirmEmail_In ¶
type UserConfirmEmail_In struct {
RequestCommon
}
type UserConfirmEmail_Out ¶
type UserConfirmEmail_Out struct {
ResponseCommon
}
type UserExternalLogin_In ¶
type UserExternalLogin_In struct { RequestCommon Provider string `json:"provider" form:"provider" query:"provider" long:"provider" msg:"provider"` }
type UserExternalLogin_Out ¶
type UserExternalLogin_Out struct { ResponseCommon Link string `json:"link" form:"link" query:"link" long:"link" msg:"link"` }
type UserForgotPassword_In ¶
type UserForgotPassword_In struct { RequestCommon Email string `json:"email" form:"email" query:"email" long:"email" msg:"email"` ChangePassCallback string `` /* 129-byte string literal not displayed */ }
type UserForgotPassword_Out ¶
type UserForgotPassword_Out struct { ResponseCommon Ok bool `json:"ok" form:"ok" query:"ok" long:"ok" msg:"ok"` }
type UserList_In ¶
type UserList_In struct { RequestCommon Limit uint32 `json:"limit" form:"limit" query:"limit" long:"limit" msg:"limit"` Offset uint32 `json:"offset" form:"offset" query:"offset" long:"offset" msg:"offset"` }
type UserList_Out ¶
type UserList_Out struct { ResponseCommon Limit uint32 `json:"limit" form:"limit" query:"limit" long:"limit" msg:"limit"` Offset uint32 `json:"offset" form:"offset" query:"offset" long:"offset" msg:"offset"` Total uint32 `json:"total" form:"total" query:"total" long:"total" msg:"total"` Users []*rqAuth.Users `json:"users" form:"users" query:"users" long:"users" msg:"users"` }
type UserLogin_In ¶
type UserLogin_In struct { RequestCommon Email string `json:"email" form:"email" query:"email" long:"email" msg:"email"` Password string `json:"password" form:"password" query:"password" long:"password" msg:"password"` }
type UserLogin_Out ¶
type UserLogin_Out struct {
ResponseCommon
}
type UserLogout_In ¶
type UserLogout_In struct {
RequestCommon
}
type UserLogout_Out ¶
type UserLogout_Out struct { ResponseCommon LoggedOut bool `json:"loggedOut" form:"loggedOut" query:"loggedOut" long:"loggedOut" msg:"loggedOut"` }
type UserOauth_In ¶
type UserOauth_In struct { RequestCommon State string `json:"state" form:"state" query:"state" long:"state" msg:"state"` Code string `json:"code" form:"code" query:"code" long:"code" msg:"code"` AccessToken string `json:"accessToken" form:"accessToken" query:"accessToken" long:"accessToken" msg:"accessToken"` }
type UserOauth_Out ¶
type UserOauth_Out struct { ResponseCommon OauthUser M.SX `json:"oauthUser" form:"oauthUser" query:"oauthUser" long:"oauthUser" msg:"oauthUser"` Email string `json:"email" form:"email" query:"email" long:"email" msg:"email"` CurrentUser rqAuth.Users `json:"currentUser" form:"currentUser" query:"currentUser" long:"currentUser" msg:"currentUser"` }
type UserProfile_In ¶
type UserProfile_In struct {
RequestCommon
}
type UserProfile_Out ¶
type UserProfile_Out struct { ResponseCommon User *rqAuth.Users `json:"user" form:"user" query:"user" long:"user" msg:"user"` }
type UserRegister_In ¶
type UserRegister_In struct { RequestCommon UserName string `json:"userName" form:"userName" query:"userName" long:"userName" msg:"userName"` Email string `json:"email" form:"email" query:"email" long:"email" msg:"email"` Password string `json:"password" form:"password" query:"password" long:"password" msg:"password"` }
type UserRegister_Out ¶
type UserRegister_Out struct { ResponseCommon CreatedAt int64 `json:"createdAt" form:"createdAt" query:"createdAt" long:"createdAt" msg:"createdAt"` UserId uint64 `json:"userId,string" form:"userId" query:"userId" long:"userId" msg:"userId"` }
type UserResetPassword_In ¶
type UserResetPassword_In struct { RequestCommon Password string `json:"password" form:"password" query:"password" long:"password" msg:"password"` SecretCode string `query:"secretCode" json:"secretCode" form:"secretCode" long:"secretCode" msg:"secretCode"` Hash string `query:"hash" json:"hash" form:"hash" long:"hash" msg:"hash"` }
type UserResetPassword_Out ¶
type UserResetPassword_Out struct { ResponseCommon Ok bool `json:"ok" form:"ok" query:"ok" long:"ok" msg:"ok"` }
type XXX_In ¶
type XXX_In struct {
RequestCommon
}
type XXX_Out ¶
type XXX_Out struct {
ResponseCommon
}
Click to show internal directories.
Click to hide internal directories.