Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Asset struct { CreatedAt func(childComplexity int) int Description func(childComplexity int) int Disabled func(childComplexity int) int EventCaps func(childComplexity int) int ID func(childComplexity int) int ImageURL func(childComplexity int) int Name func(childComplexity int) int Type func(childComplexity int) int UpdatedAt func(childComplexity int) int } EventCapability struct { Code func(childComplexity int) int Description func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int } Member struct { CreatedAt func(childComplexity int) int Disabled func(childComplexity int) int ID func(childComplexity int) int Roles func(childComplexity int) int UpdatedAt func(childComplexity int) int User func(childComplexity int) int } Mutation struct { Connect func(childComplexity int, input model.SessionInput) int CreateAsset func(childComplexity int, organizationID string, input model.AssetInput) int CreateMember func(childComplexity int, organizationID string, input model.MemberInput) int CreateOrganization func(childComplexity int, input model.OrganizationInput) int CreateUser func(childComplexity int, input model.UserInput) int CreateWallet func(childComplexity int, organizationID *string, userID *string, input model.WalletInput) int DeleteAsset func(childComplexity int, assetID string) int DeleteMember func(childComplexity int, organizationID *string, memberID string) int DeleteOrganization func(childComplexity int, organizationID string) int DeleteUser func(childComplexity int, userID string) int DeleteWallet func(childComplexity int, walletID string) int Disconnect func(childComplexity int, sessionID string) int UpdateAsset func(childComplexity int, assetID string, input model.AssetInput) int UpdateMember func(childComplexity int, memberID string, input model.MemberInput) int UpdateOrganization func(childComplexity int, organizationID string, input model.OrganizationInput) int UpdateUser func(childComplexity int, userID string, input model.UserInput) int UpdateWallet func(childComplexity int, walletID string, input model.WalletInput) int } Organization struct { Assets func(childComplexity int) int CreatedAt func(childComplexity int) int Description func(childComplexity int) int ID func(childComplexity int) int Members func(childComplexity int) int Name func(childComplexity int) int Type func(childComplexity int) int UpdatedAt func(childComplexity int) int Wallet func(childComplexity int) int } Query struct { Assets func(childComplexity int, orgID *string, id *string) int Members func(childComplexity int, orgID *string, id *string) int Organizations func(childComplexity int, id *string) int Users func(childComplexity int, id *string) int Wallets func(childComplexity int, id *string) int } Session struct { Active func(childComplexity int) int Asset func(childComplexity int) int CreatedAt func(childComplexity int) int ID func(childComplexity int) int UpdatedAt func(childComplexity int) int User func(childComplexity int) int } User struct { AvatarURL func(childComplexity int) int CreatedAt func(childComplexity int) int Disabled func(childComplexity int) int Email func(childComplexity int) int FirstName func(childComplexity int) int ID func(childComplexity int) int LastName func(childComplexity int) int Name func(childComplexity int) int NickName func(childComplexity int) int UpdatedAt func(childComplexity int) int Wallet func(childComplexity int) int } Wallet struct { EthAddress func(childComplexity int) int ID func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type MutationResolver ¶
type MutationResolver interface { CreateOrganization(ctx context.Context, input model.OrganizationInput) (*model.Organization, error) UpdateOrganization(ctx context.Context, organizationID string, input model.OrganizationInput) (*model.Organization, error) DeleteOrganization(ctx context.Context, organizationID string) (*model.Organization, error) CreateMember(ctx context.Context, organizationID string, input model.MemberInput) (*model.Member, error) UpdateMember(ctx context.Context, memberID string, input model.MemberInput) (*model.Member, error) DeleteMember(ctx context.Context, organizationID *string, memberID string) (*model.Member, error) CreateAsset(ctx context.Context, organizationID string, input model.AssetInput) (*model.Asset, error) UpdateAsset(ctx context.Context, assetID string, input model.AssetInput) (*model.Asset, error) DeleteAsset(ctx context.Context, assetID string) (*model.Asset, error) CreateUser(ctx context.Context, input model.UserInput) (*model.User, error) UpdateUser(ctx context.Context, userID string, input model.UserInput) (*model.User, error) DeleteUser(ctx context.Context, userID string) (*model.User, error) CreateWallet(ctx context.Context, organizationID *string, userID *string, input model.WalletInput) (*model.Wallet, error) UpdateWallet(ctx context.Context, walletID string, input model.WalletInput) (*model.Wallet, error) DeleteWallet(ctx context.Context, walletID string) (*model.Wallet, error) Connect(ctx context.Context, input model.SessionInput) (*model.Session, error) Disconnect(ctx context.Context, sessionID string) (*model.Session, error) }
type QueryResolver ¶
type QueryResolver interface { Organizations(ctx context.Context, id *string) ([]*model.Organization, error) Members(ctx context.Context, orgID *string, id *string) ([]*model.Member, error) Users(ctx context.Context, id *string) ([]*model.User, error) Assets(ctx context.Context, orgID *string, id *string) ([]*model.Asset, error) Wallets(ctx context.Context, id *string) ([]*model.Wallet, error) }
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.