Documentation
¶
Index ¶
- type AccessScopeResolver
- type AppListResolver
- type AppResolver
- func (r *AppResolver) AccessList() *[]*AccessScopeResolver
- func (r *AppResolver) Developers() *[]*UserResolver
- func (r *AppResolver) ID() string
- func (r *AppResolver) Icon() string
- func (r *AppResolver) Intro() string
- func (r *AppResolver) Key() *string
- func (r *AppResolver) Managers() *[]*UserResolver
- func (r *AppResolver) Name() string
- func (r *AppResolver) Owner() *UserResolver
- func (r *AppResolver) Scopes() *[]*AccessScopeResolver
- func (r *AppResolver) Secret() *string
- func (r *AppResolver) URL() string
- func (r *AppResolver) Users() *[]*UserResolver
- type GroupListResolver
- type GroupResolver
- type OrgListResolver
- type OrgResolver
- func (r *OrgResolver) Children() *[]*OrgResolver
- func (r *OrgResolver) Detail() string
- func (r *OrgResolver) Father() *OrgResolver
- func (r *OrgResolver) ID() string
- func (r *OrgResolver) Icon() string
- func (r *OrgResolver) Master() *UserResolver
- func (r *OrgResolver) Name() string
- func (r *OrgResolver) Users() *[]*UserResolver
- type Resolver
- func (r *Resolver) AddAppAccess(ctx context.Context, args struct{ ... }) (*AppResolver, error)
- func (r *Resolver) AddAppScope(ctx context.Context, args struct{ ... }) (*AppResolver, error)
- func (r *Resolver) App(ctx context.Context, args struct{ ... }) (*AppResolver, error)
- func (r *Resolver) Apps(ctx context.Context, args struct{ ... }) (*AppListResolver, error)
- func (r *Resolver) CreateApp(ctx context.Context, args struct{ ... }) (*AppResolver, error)
- func (r *Resolver) CreateGroup(ctx context.Context, args struct{ ... }) (*GroupResolver, error)
- func (r *Resolver) CreateOrg(ctx context.Context, args struct{ ... }) (*OrgResolver, error)
- func (r *Resolver) DelAppAccess(ctx context.Context, args struct{ ... }) (*AppResolver, error)
- func (r *Resolver) DelAppScope(ctx context.Context, args struct{ ... }) (*AppResolver, error)
- func (r *Resolver) DeleteApp(ctx context.Context, args struct{ ... }) (bool, error)
- func (r *Resolver) DeleteGroup(ctx context.Context, args struct{ ... }) (bool, error)
- func (r *Resolver) DeleteOrg(ctx context.Context, args struct{ ... }) (bool, error)
- func (r *Resolver) Group(ctx context.Context, args struct{ ... }) (*GroupResolver, error)
- func (r *Resolver) Groups(ctx context.Context, args struct{ ... }) (*GroupListResolver, error)
- func (r *Resolver) InviteJoinGroup(ctx context.Context, args struct{ ... }) (*GroupResolver, error)
- func (r *Resolver) InviteJoinOrg(ctx context.Context, args struct{ ... }) (*OrgResolver, error)
- func (r *Resolver) JoinGroup(ctx context.Context, args struct{ ... }) (*GroupResolver, error)
- func (r *Resolver) JoinOrg(ctx context.Context, args struct{ ... }) (*OrgResolver, error)
- func (r *Resolver) MarkApp(ctx context.Context, args struct{ ... }) (*AppResolver, error)
- func (r *Resolver) MyMarkApps(ctx context.Context) ([]*AppResolver, error)
- func (r *Resolver) Org(ctx context.Context, args struct{ ... }) (*OrgResolver, error)
- func (r *Resolver) Orgs(ctx context.Context, args struct{ ... }) (*OrgListResolver, error)
- func (r *Resolver) PostAuthCode(ctx context.Context, args struct{ ... }) (bool, error)
- func (r *Resolver) QuitGroup(ctx context.Context, args struct{ ... }) (*GroupResolver, error)
- func (r *Resolver) QuitOrg(ctx context.Context, args struct{ ... }) (*OrgResolver, error)
- func (r *Resolver) ResetAppSecret(ctx context.Context, args struct{ ... }) (*string, error)
- func (r *Resolver) Scopes(ctx context.Context, args struct{ ... }) (*TokenScopesResolver, error)
- func (r *Resolver) UnmarkApp(ctx context.Context, args struct{ ... }) (*AppResolver, error)
- func (r *Resolver) UpdateApp(ctx context.Context, args struct{ ... }) (*AppResolver, error)
- func (r *Resolver) UpdateGroup(ctx context.Context, args struct{ ... }) (*GroupResolver, error)
- func (r *Resolver) UpdateOrg(ctx context.Context, args struct{ ... }) (*OrgResolver, error)
- func (r *Resolver) UpdateUser(ctx context.Context, args struct{ ... }) (*UserResolver, error)
- func (r *Resolver) UpdateUserBinding(ctx context.Context, args struct{ ... }) (bool, error)
- func (r *Resolver) UpdateUserPass(ctx context.Context, args struct{ ... }) (bool, error)
- func (r *Resolver) User(ctx context.Context, args struct{ ... }) (*UserResolver, error)
- func (r *Resolver) Users(ctx context.Context, args struct{ ... }) (*UserListResolver, error)
- type TokenScopesResolver
- type UserListResolver
- type UserResolver
- func (r *UserResolver) Apps() *[]*AppResolver
- func (r *UserResolver) Avatar() string
- func (r *UserResolver) Email() *string
- func (r *UserResolver) Homepage() string
- func (r *UserResolver) Motto() string
- func (r *UserResolver) MyApps() *[]*AppResolver
- func (r *UserResolver) Name() *string
- func (r *UserResolver) Nick() string
- func (r *UserResolver) Phone() *string
- func (r *UserResolver) UUID() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessScopeResolver ¶
type AccessScopeResolver struct {
// contains filtered or unexported fields
}
AccessScopeResolver of self
func (*AccessScopeResolver) App ¶
func (r *AccessScopeResolver) App() *AppResolver
App of AccessScope
func (*AccessScopeResolver) Detail ¶
func (r *AccessScopeResolver) Detail() string
Detail of AccessScope
type AppListResolver ¶
type AppListResolver struct {
// contains filtered or unexported fields
}
AppListResolver of self
type AppResolver ¶
type AppResolver struct {
// contains filtered or unexported fields
}
AppResolver of self
func (*AppResolver) AccessList ¶
func (r *AppResolver) AccessList() *[]*AccessScopeResolver
AccessList of App
func (*AppResolver) Developers ¶
func (r *AppResolver) Developers() *[]*UserResolver
Developers of App
type GroupListResolver ¶
type GroupListResolver struct {
// contains filtered or unexported fields
}
GroupListResolver of self
func (*GroupListResolver) List ¶
func (r *GroupListResolver) List() *[]*GroupResolver
List of GroupList
type GroupResolver ¶
type GroupResolver struct {
// contains filtered or unexported fields
}
GroupResolver of core
type OrgListResolver ¶
type OrgListResolver struct {
// contains filtered or unexported fields
}
OrgListResolver of self
type OrgResolver ¶
type OrgResolver struct {
// contains filtered or unexported fields
}
OrgResolver of core
type Resolver ¶
type Resolver struct{}
The Resolver is the entry point for all top-level read operations.
func (*Resolver) AddAppAccess ¶
func (r *Resolver) AddAppAccess(ctx context.Context, args struct { ID string Name string }) (*AppResolver, error)
AddAppAccess Mutation
func (*Resolver) AddAppScope ¶
func (r *Resolver) AddAppScope(ctx context.Context, args struct { ID string Name string Detail string }) (*AppResolver, error)
AddAppScope Mutation
func (*Resolver) Apps ¶
func (r *Resolver) Apps(ctx context.Context, args struct { Word string Page *int32 Size *int32 }) (*AppListResolver, error)
Apps Query
func (*Resolver) CreateApp ¶
func (r *Resolver) CreateApp(ctx context.Context, args struct { Name string Icon string Intro string URL string }) (*AppResolver, error)
CreateApp Mutation
func (*Resolver) CreateGroup ¶
func (r *Resolver) CreateGroup(ctx context.Context, args struct { Name string Icon string Detail string }) (*GroupResolver, error)
CreateGroup Mutation
func (*Resolver) CreateOrg ¶
func (r *Resolver) CreateOrg(ctx context.Context, args struct { Father *string Name string Icon string Detail string Master *string }) (*OrgResolver, error)
CreateOrg Mutation
func (*Resolver) DelAppAccess ¶
func (r *Resolver) DelAppAccess(ctx context.Context, args struct { ID string Name string }) (*AppResolver, error)
DelAppAccess Mutation
func (*Resolver) DelAppScope ¶
func (r *Resolver) DelAppScope(ctx context.Context, args struct { ID string Name string }) (*AppResolver, error)
DelAppScope Mutation
func (*Resolver) DeleteGroup ¶
DeleteGroup Mutation
func (*Resolver) Groups ¶
func (r *Resolver) Groups(ctx context.Context, args struct { Word string Page *int32 Size *int32 }) (*GroupListResolver, error)
Groups Query
func (*Resolver) InviteJoinGroup ¶
func (r *Resolver) InviteJoinGroup(ctx context.Context, args struct { ID string Users []string }) (*GroupResolver, error)
InviteJoinGroup Mutation
func (*Resolver) InviteJoinOrg ¶
func (r *Resolver) InviteJoinOrg(ctx context.Context, args struct { ID string Users []string }) (*OrgResolver, error)
InviteJoinOrg Mutation
func (*Resolver) JoinGroup ¶
func (r *Resolver) JoinGroup(ctx context.Context, args struct { ID string }) (*GroupResolver, error)
JoinGroup Mutation
func (*Resolver) MyMarkApps ¶
func (r *Resolver) MyMarkApps(ctx context.Context) ([]*AppResolver, error)
MyMarkApps Query
func (*Resolver) Orgs ¶
func (r *Resolver) Orgs(ctx context.Context, args struct { Word string Page *int32 Size *int32 }) (*OrgListResolver, error)
Orgs Query
func (*Resolver) PostAuthCode ¶
func (r *Resolver) PostAuthCode(ctx context.Context, args struct { Type string To string }) (bool, error)
PostAuthCode Mutation
func (*Resolver) QuitGroup ¶
func (r *Resolver) QuitGroup(ctx context.Context, args struct { ID string }) (*GroupResolver, error)
QuitGroup Mutation
func (*Resolver) ResetAppSecret ¶
ResetAppSecret Mutation
func (*Resolver) Scopes ¶
func (r *Resolver) Scopes(ctx context.Context, args struct { AppID string AppKey string AppSecret string }) (*TokenScopesResolver, error)
Scopes Query for 3rd
func (*Resolver) UpdateApp ¶
func (r *Resolver) UpdateApp(ctx context.Context, args struct { ID string Name *string Icon *string Intro *string URL *string }) (*AppResolver, error)
UpdateApp Mutation
func (*Resolver) UpdateGroup ¶
func (r *Resolver) UpdateGroup(ctx context.Context, args struct { ID string Name *string Icon *string Detail *string Master *string DelUsers *[]string }) (*GroupResolver, error)
UpdateGroup Mutation
func (*Resolver) UpdateOrg ¶
func (r *Resolver) UpdateOrg(ctx context.Context, args struct { ID string Name *string Icon *string Detail *string Master *string DelUsers *[]string }) (*OrgResolver, error)
UpdateOrg Mutation
func (*Resolver) UpdateUser ¶
func (r *Resolver) UpdateUser(ctx context.Context, args struct { Nick *string Avatar *string Motto *string Homepage *string }) (*UserResolver, error)
UpdateUser Mutation
func (*Resolver) UpdateUserBinding ¶
func (r *Resolver) UpdateUserBinding(ctx context.Context, args struct { Type string To string Code string }) (bool, error)
UpdateUserBinding Mutation
func (*Resolver) UpdateUserPass ¶
func (r *Resolver) UpdateUserPass(ctx context.Context, args struct { Old string Pass string }) (bool, error)
UpdateUserPass Mutation
type TokenScopesResolver ¶
type TokenScopesResolver struct {
// contains filtered or unexported fields
}
TokenScopesResolver of core
func (*TokenScopesResolver) Scopes ¶
func (r *TokenScopesResolver) Scopes() *[]string
Scopes of Token
type UserListResolver ¶
type UserListResolver struct {
// contains filtered or unexported fields
}
UserListResolver of self
type UserResolver ¶
type UserResolver struct {
// contains filtered or unexported fields
}
UserResolver of core