Documentation
¶
Index ¶
- Variables
- type Account
- func (a *Account) GetProfileV1(ctx *jonson.Context, caller *Public, _ jonson.HttpPost, ...) (*GetProfileV1Result, error)
- func (a *Account) MeV1(ctx *jonson.Context, caller *Private, _ jonson.HttpGet) (*MeV1Result, error)
- func (a *Account) ProcessV1(ctx *jonson.Context, caller *Public, _ jonson.HttpGet) error
- type AuthenticationProvider
- type GetProfileV1Params
- type GetProfileV1Result
- type MeV1Result
- type Private
- type Public
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = &jonson.Error{Code: 10000, Message: "Account not found"}
View Source
var TypePrivate = reflect.TypeOf((**Private)(nil)).Elem()
provider.authorization.go:6 -- Private -- struct
View Source
var TypePublic = reflect.TypeOf((**Public)(nil)).Elem()
provider.authorization.go:14 -- Public -- struct
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct{}
func NewAccount ¶
func NewAccount() *Account
func (*Account) GetProfileV1 ¶
func (a *Account) GetProfileV1(ctx *jonson.Context, caller *Public, _ jonson.HttpPost, params *GetProfileV1Params) (*GetProfileV1Result, error)
type AuthenticationProvider ¶
type AuthenticationProvider struct { }
func NewAuthenticationProvider ¶
func NewAuthenticationProvider() *AuthenticationProvider
func (*AuthenticationProvider) NewPrivate ¶
func (p *AuthenticationProvider) NewPrivate(ctx *jonson.Context) *Private
type GetProfileV1Params ¶
func (*GetProfileV1Params) JonsonValidate ¶
func (g *GetProfileV1Params) JonsonValidate(v *jonson.Validator)
type GetProfileV1Result ¶
type GetProfileV1Result struct {
Name string `json:"name"`
}
func GetProfileV1 ¶
func GetProfileV1(ctx *jonson.Context, p *GetProfileV1Params) (*GetProfileV1Result, error)
account.go:42 -- GetProfileV1
type MeV1Result ¶
type Private ¶
type Private struct { }
@generate
func RequirePrivate ¶
func (*Private) AccountUuid ¶
Click to show internal directories.
Click to hide internal directories.