Versions in this module Expand all Collapse all v0 v0.2.0 Apr 14, 2021 Changes in this version + var AllStorageType = []StorageType + var AllTaskStatus = []TaskStatus + var AllTaskType = []TaskType type ComplexityRoot + Pair struct{ ... } + Staff struct{ ... } + Storage struct{ ... } type CreateTask + Staffs []*StaffInput + Storages []*StorageInput + type Pair struct + Key string + Value string + type PairInput struct + Key string + Value string + type Staff struct + ID string + type StaffInput struct + ID string + type Storage struct + Options []*Pair + Type StorageType + type StorageInput struct + Options []*PairInput + Type StorageType + type StorageType string + const StorageTypeFs + const StorageTypeQingstor + func (e *StorageType) UnmarshalGQL(v interface{}) error + func (e StorageType) IsValid() bool + func (e StorageType) MarshalGQL(w io.Writer) + func (e StorageType) String() string + type Task struct + CreatedAt time.Time + ID string + Name string + Options []*Pair + Staffs []*Staff + Status TaskStatus + Storages []*Storage + Type TaskType + UpdatedAt time.Time + type TaskStatus string + const TaskStatusCreated + const TaskStatusError + const TaskStatusFinished + const TaskStatusReady + const TaskStatusRunning + const TaskStatusStopped + func (e *TaskStatus) UnmarshalGQL(v interface{}) error + func (e TaskStatus) IsValid() bool + func (e TaskStatus) MarshalGQL(w io.Writer) + func (e TaskStatus) String() string + type TaskType string + const TaskTypeCopyDir + func (e *TaskType) UnmarshalGQL(v interface{}) error + func (e TaskType) IsValid() bool + func (e TaskType) MarshalGQL(w io.Writer) + func (e TaskType) String() string v0.1.0 Mar 29, 2021 Changes in this version + func GinContextFrom(ctx context.Context) *gin.Context + func NewExecutableSchema(cfg Config) graphql.ExecutableSchema + func WithInGinCtx() gin.HandlerFunc + type ComplexityRoot struct + Endpoint struct{ ... } + Mutation struct{ ... } + Query struct{ ... } + Task struct{ ... } + type Config struct + Complexity ComplexityRoot + Directives DirectiveRoot + Resolvers ResolverRoot + type CreateTask struct + Dst *models.Endpoint + Name string + Options interface{} + Src *models.Endpoint + Type models.TaskType + type DeleteTask struct + ID string + type DirectiveRoot struct + type MutationResolver interface + CreateTask func(ctx context.Context, input *CreateTask) (*models.Task, error) + DeleteTask func(ctx context.Context, input *DeleteTask) (*models.Task, error) + RunTask func(ctx context.Context, id string) (*models.Task, error) + type QueryResolver interface + Task func(ctx context.Context, id string) (*models.Task, error) + Tasks func(ctx context.Context) ([]*models.Task, error) + type Resolver struct + DB *models.DB + Manager *task.Manager + func (r *Resolver) Mutation() MutationResolver + func (r *Resolver) Query() QueryResolver + func (r *Resolver) Task() TaskResolver + type ResolverRoot interface + Mutation func() MutationResolver + Query func() QueryResolver + Task func() TaskResolver + type Server struct + DB *models.DB + Debug bool + Manager *task.Manager + Path string + func (s *Server) RegisterRouter(r *gin.Engine) + type TaskResolver interface + Options func(ctx context.Context, obj *models.Task) (interface{}, error)