Documentation ¶
Index ¶
- func NewDefaultServer(app application.Application) *handler.Server
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type ComplexityRoot
- type Config
- type DirectiveRoot
- type MutationResolver
- type PaginatedMediaResolver
- type PaginatedPositionsResolver
- type QueryResolver
- type Resolver
- func (r *Resolver) Mutation() MutationResolver
- func (r *Resolver) PaginatedMedia() PaginatedMediaResolver
- func (r *Resolver) PaginatedPositions() PaginatedPositionsResolver
- func (r *Resolver) Query() QueryResolver
- func (r *Resolver) Subscription() SubscriptionResolver
- func (r *Resolver) User() UserResolver
- type ResolverRoot
- type SubscriptionResolver
- type UserResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultServer ¶
func NewDefaultServer(app application.Application) *handler.Server
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { AuthenticationLog struct { CreatedAt func(childComplexity int) int ID func(childComplexity int) int IP func(childComplexity int) int UserAgent func(childComplexity int) int UserID func(childComplexity int) int } Dialogue struct { CreatedAt func(childComplexity int) int ID func(childComplexity int) int Label func(childComplexity int) int Messages func(childComplexity int) int UpdatedAt func(childComplexity int) int UserID func(childComplexity int) int } Media struct { CreatedAt func(childComplexity int) int ID func(childComplexity int) int Mimetype func(childComplexity int) int Name func(childComplexity int) int Path func(childComplexity int) int Size func(childComplexity int) int UpdatedAt func(childComplexity int) int } Message struct { Content func(childComplexity int) int Role func(childComplexity int) int ToolCalls func(childComplexity int) int } Mutation struct { Authenticate func(childComplexity int, email string, password string) int CreatePayment func(childComplexity int, input model.CreatePayment) int CreatePosition func(childComplexity int, input model.CreatePosition) int CreateRole func(childComplexity int, input model.CreateRole) int CreateRolePermission func(childComplexity int, input model.CreateRolePermission) int CreateUser func(childComplexity int, input model.CreateUser) int DeleteDialogue func(childComplexity int, id int64) int DeletePayment func(childComplexity int, id int64) int DeletePosition func(childComplexity int, id int64) int DeleteRole func(childComplexity int, id int64) int DeleteSession func(childComplexity int, token string) int DeleteUpload func(childComplexity int, id int64) int DeleteUser func(childComplexity int, id int64) int GoogleAuthenticate func(childComplexity int) int NewDialogue func(childComplexity int, input model.NewDialogue) int ReplyDialogue func(childComplexity int, id int64, input model.DialogueReply) int UpdatePayment func(childComplexity int, id int64, input model.UpdatePayment) int UpdatePosition func(childComplexity int, id int64, input model.UpdatePosition) int UpdatePrompt func(childComplexity int, id string, input model.UpdatePrompt) int UpdateRole func(childComplexity int, id int64, input model.UpdateRole) int UpdateUser func(childComplexity int, id int64, input model.UpdateUser) int UploadFile func(childComplexity int, file graphql.Upload) int } PaginatedAuthenticationLogs struct { Data func(childComplexity int) int Total func(childComplexity int) int } PaginatedDialogues struct { Data func(childComplexity int) int Total func(childComplexity int) int } PaginatedMedia struct { Data func(childComplexity int) int Total func(childComplexity int) int } PaginatedPayments struct { Data func(childComplexity int) int Total func(childComplexity int) int } PaginatedPermissions struct { Data func(childComplexity int) int Total func(childComplexity int) int } PaginatedPositions struct { Data func(childComplexity int) int Total func(childComplexity int) int } PaginatedPrompts struct { Data func(childComplexity int) int Total func(childComplexity int) int } PaginatedRolePermissions struct { Data func(childComplexity int) int Total func(childComplexity int) int } PaginatedRoles struct { Data func(childComplexity int) int Total func(childComplexity int) int } PaginatedSessions struct { Data func(childComplexity int) int Total func(childComplexity int) int } PaginatedUsers struct { Data func(childComplexity int) int Total func(childComplexity int) int } Payment struct { CreatedAt func(childComplexity int) int ID func(childComplexity int) int StageID func(childComplexity int) int TransactionID func(childComplexity int) int UpdatedAt func(childComplexity int) int } Permission struct { Action func(childComplexity int) int Description func(childComplexity int) int ID func(childComplexity int) int Modifier func(childComplexity int) int Resource func(childComplexity int) int } Position struct { CreatedAt func(childComplexity int) int Description func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int UpdatedAt func(childComplexity int) int } Prompt struct { CreatedAt func(childComplexity int) int Description func(childComplexity int) int ID func(childComplexity int) int Prompt func(childComplexity int) int Title func(childComplexity int) int UpdatedAt func(childComplexity int) int } Query struct { AuthenticationLog func(childComplexity int, id int64) int AuthenticationLogs func(childComplexity int, offset int, limit int, sortBy []string) int Dialogue func(childComplexity int, id int64) int Dialogues func(childComplexity int, offset int, limit int, sortBy []string) int Payment func(childComplexity int, id int64) int Payments func(childComplexity int, offset int, limit int, sortBy []string) int Permission func(childComplexity int, id int64) int Permissions func(childComplexity int, offset int, limit int, sortBy []string) int Position func(childComplexity int, id int64) int Positions func(childComplexity int, offset int, limit int, sortBy []string) int Prompt func(childComplexity int, id string) int Prompts func(childComplexity int, offset int, limit int, sortBy []string) int Role func(childComplexity int, id int64) int RolePermission func(childComplexity int, roleID int64, permissionID int64) int RolePermissions func(childComplexity int, offset int, limit int, sortBy []string) int Roles func(childComplexity int, offset int, limit int, sortBy []string) int Session func(childComplexity int, token string) int Sessions func(childComplexity int, offset int, limit int, sortBy []string) int Upload func(childComplexity int, id int64) int Uploads func(childComplexity int, offset int, limit int, sortBy []string) int User func(childComplexity int, id int64) int Users func(childComplexity int, offset int, limit int, sortBy []string) int } Role struct { CreatedAt func(childComplexity int) int Description func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int UpdatedAt func(childComplexity int) int } RolePermissions struct { PermissionID func(childComplexity int) int RoleID func(childComplexity int) int } Session struct { CreatedAt func(childComplexity int) int ExpiresAt func(childComplexity int) int IP func(childComplexity int) int Token func(childComplexity int) int UserAgent func(childComplexity int) int UserID func(childComplexity int) int } Subscription struct { DialogueCreated func(childComplexity int) int DialogueDeleted func(childComplexity int) int DialogueUpdated func(childComplexity int) int PaymentCreated func(childComplexity int) int PaymentDeleted func(childComplexity int) int PaymentUpdated func(childComplexity int) int PositionCreated func(childComplexity int) int PositionDeleted func(childComplexity int) int PositionUpdated func(childComplexity int) int PromptUpdated func(childComplexity int) int RoleCreated func(childComplexity int) int RoleDeleted func(childComplexity int) int RolePermissionCreated func(childComplexity int) int RolePermissionDeleted func(childComplexity int) int RoleUpdated func(childComplexity int) int SessionDeleted func(childComplexity int) int UploadCreated func(childComplexity int) int UploadDeleted func(childComplexity int) int UploadUpdated func(childComplexity int) int UserCreated func(childComplexity int) int UserDeleted func(childComplexity int) int UserUpdated func(childComplexity int) int } ToolCall struct { ID func(childComplexity int) int Index func(childComplexity int) int Type func(childComplexity int) int } User struct { Avatar func(childComplexity int) int AvatarID func(childComplexity int) int CreatedAt func(childComplexity int) int Email func(childComplexity int) int EmployeeID func(childComplexity int) int FirstName func(childComplexity int) int ID func(childComplexity int) int LastAction func(childComplexity int) int LastIP func(childComplexity int) int LastLogin func(childComplexity int) int LastName func(childComplexity int) int MiddleName func(childComplexity int) int UpdatedAt func(childComplexity int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type MutationResolver interface { CreateRole(ctx context.Context, input model.CreateRole) (*model.Role, error) UpdateRole(ctx context.Context, id int64, input model.UpdateRole) (*model.Role, error) DeleteRole(ctx context.Context, id int64) (bool, error) CreateRolePermission(ctx context.Context, input model.CreateRolePermission) (*model.RolePermissions, error) Authenticate(ctx context.Context, email string, password string) (*model.Session, error) GoogleAuthenticate(ctx context.Context) (string, error) DeleteSession(ctx context.Context, token string) (bool, error) NewDialogue(ctx context.Context, input model.NewDialogue) (*model.Dialogue, error) ReplyDialogue(ctx context.Context, id int64, input model.DialogueReply) (*model.Dialogue, error) DeleteDialogue(ctx context.Context, id int64) (*model.Dialogue, error) UpdatePrompt(ctx context.Context, id string, input model.UpdatePrompt) (*model.Prompt, error) CreatePayment(ctx context.Context, input model.CreatePayment) (*model.Payment, error) UpdatePayment(ctx context.Context, id int64, input model.UpdatePayment) (*model.Payment, error) DeletePayment(ctx context.Context, id int64) (bool, error) CreatePosition(ctx context.Context, input model.CreatePosition) (*model.Position, error) UpdatePosition(ctx context.Context, id int64, input model.UpdatePosition) (*model.Position, error) DeletePosition(ctx context.Context, id int64) (bool, error) UploadFile(ctx context.Context, file graphql.Upload) (*model.Media, error) DeleteUpload(ctx context.Context, id int64) (*model.Media, error) CreateUser(ctx context.Context, input model.CreateUser) (*model.User, error) UpdateUser(ctx context.Context, id int64, input model.UpdateUser) (*model.User, error) DeleteUser(ctx context.Context, id int64) (*model.User, error) }
type PaginatedMediaResolver ¶
type QueryResolver ¶
type QueryResolver interface { Role(ctx context.Context, id int64) (*model.Role, error) Roles(ctx context.Context, offset int, limit int, sortBy []string) (*model.PaginatedRoles, error) Permission(ctx context.Context, id int64) (*model.Permission, error) Permissions(ctx context.Context, offset int, limit int, sortBy []string) (*model.PaginatedPermissions, error) RolePermission(ctx context.Context, roleID int64, permissionID int64) (*model.RolePermissions, error) RolePermissions(ctx context.Context, offset int, limit int, sortBy []string) (*model.PaginatedRolePermissions, error) AuthenticationLog(ctx context.Context, id int64) (*model.AuthenticationLog, error) AuthenticationLogs(ctx context.Context, offset int, limit int, sortBy []string) (*model.PaginatedAuthenticationLogs, error) Session(ctx context.Context, token string) (*model.Session, error) Sessions(ctx context.Context, offset int, limit int, sortBy []string) (*model.PaginatedSessions, error) Dialogue(ctx context.Context, id int64) (*model.Dialogue, error) Dialogues(ctx context.Context, offset int, limit int, sortBy []string) (*model.PaginatedDialogues, error) Prompt(ctx context.Context, id string) (*model.Prompt, error) Prompts(ctx context.Context, offset int, limit int, sortBy []string) (*model.PaginatedPrompts, error) Payment(ctx context.Context, id int64) (*model.Payment, error) Payments(ctx context.Context, offset int, limit int, sortBy []string) (*model.PaginatedPayments, error) Position(ctx context.Context, id int64) (*model.Position, error) Positions(ctx context.Context, offset int, limit int, sortBy []string) (*model.PaginatedPositions, error) Upload(ctx context.Context, id int64) (*model.Media, error) Uploads(ctx context.Context, offset int, limit int, sortBy []string) (*model.PaginatedMedia, error) User(ctx context.Context, id int64) (*model.User, error) Users(ctx context.Context, offset int, limit int, sortBy []string) (*model.PaginatedUsers, error) }
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() MutationResolver
Mutation returns MutationResolver implementation.
func (*Resolver) PaginatedMedia ¶
func (r *Resolver) PaginatedMedia() PaginatedMediaResolver
PaginatedMedia returns PaginatedMediaResolver implementation.
func (*Resolver) PaginatedPositions ¶
func (r *Resolver) PaginatedPositions() PaginatedPositionsResolver
PaginatedPositions returns PaginatedPositionsResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query returns QueryResolver implementation.
func (*Resolver) Subscription ¶
func (r *Resolver) Subscription() SubscriptionResolver
Subscription returns SubscriptionResolver implementation.
func (*Resolver) User ¶
func (r *Resolver) User() UserResolver
User returns UserResolver implementation.
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver PaginatedMedia() PaginatedMediaResolver PaginatedPositions() PaginatedPositionsResolver Query() QueryResolver Subscription() SubscriptionResolver User() UserResolver }
type SubscriptionResolver ¶
type SubscriptionResolver interface { RoleCreated(ctx context.Context) (<-chan *model.Role, error) RoleUpdated(ctx context.Context) (<-chan *model.Role, error) RoleDeleted(ctx context.Context) (<-chan int64, error) RolePermissionCreated(ctx context.Context) (<-chan *model.RolePermissions, error) RolePermissionDeleted(ctx context.Context) (<-chan int64, error) SessionDeleted(ctx context.Context) (<-chan int64, error) DialogueCreated(ctx context.Context) (<-chan *model.Dialogue, error) DialogueUpdated(ctx context.Context) (<-chan *model.Dialogue, error) DialogueDeleted(ctx context.Context) (<-chan *model.Dialogue, error) PromptUpdated(ctx context.Context) (<-chan *model.Prompt, error) PaymentCreated(ctx context.Context) (<-chan *model.Payment, error) PaymentUpdated(ctx context.Context) (<-chan *model.Payment, error) PaymentDeleted(ctx context.Context) (<-chan int64, error) PositionCreated(ctx context.Context) (<-chan *model.Position, error) PositionUpdated(ctx context.Context) (<-chan *model.Position, error) PositionDeleted(ctx context.Context) (<-chan int64, error) UploadCreated(ctx context.Context) (<-chan *model.Media, error) UploadUpdated(ctx context.Context) (<-chan *model.Media, error) UploadDeleted(ctx context.Context) (<-chan *model.Media, error) UserCreated(ctx context.Context) (<-chan *model.User, error) UserUpdated(ctx context.Context) (<-chan *model.User, error) UserDeleted(ctx context.Context) (<-chan *model.User, error) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.