Documentation ¶
Index ¶
- func LoadJsonSchema(name string, i interface{}) (err error)
- func SetAccTasks(ctx context.Context, db *mongo.Database) (err error)
- func SetCategories(ctx context.Context, db *mongo.Database) (err error)
- func SetClusters(ctx context.Context, db *mongo.Database) (err error)
- func SetEndpoints(ctx context.Context, db *mongo.Database) (err error)
- func SetImessages(ctx context.Context, db *mongo.Database) (err error)
- func SetLogsetImessages(ctx context.Context, db *mongo.Database) (err error)
- func SetLogsetJobs(ctx context.Context, db *mongo.Database) (err error)
- func SetLogsetLogins(ctx context.Context, db *mongo.Database) (err error)
- func SetLogsetOperates(ctx context.Context, db *mongo.Database) (err error)
- func SetPictures(ctx context.Context, db *mongo.Database) (err error)
- func SetProjects(ctx context.Context, db *mongo.Database) (err error)
- func SetQueues(ctx context.Context, db *mongo.Database) (err error)
- func SetUsers(ctx context.Context, db *mongo.Database) (err error)
- func SetVideos(ctx context.Context, db *mongo.Database) (err error)
- func SetWorkflows(ctx context.Context, db *mongo.Database) (err error)
- type AccTask
- type Category
- type Cluster
- type ClusterKubeConfig
- type Endpoint
- type EndpointEmqx
- type EndpointSchedule
- type Imessage
- type LogsetLogin
- type LogsetLoginMetadata
- type Picture
- type PictureProcess
- type PictureProcessCut
- type PictureProcessZoom
- type Project
- type ProjectNats
- type ProjectRedis
- type Queue
- type User
- type UserLark
- type Video
- type Workflow
- type WorkflowSchedule
- type WorkflowScheduleJob
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadJsonSchema ¶ added in v0.1.1
func SetAccTasks ¶ added in v0.1.23
func SetCategories ¶ added in v0.1.8
func SetClusters ¶ added in v0.1.8
func SetEndpoints ¶ added in v0.2.1
func SetImessages ¶ added in v0.1.8
func SetLogsetImessages ¶ added in v0.1.16
func SetLogsetJobs ¶ added in v0.1.8
func SetLogsetLogins ¶ added in v0.1.16
func SetLogsetOperates ¶ added in v0.1.8
func SetPictures ¶ added in v0.1.8
func SetProjects ¶ added in v0.1.8
Types ¶
type Category ¶ added in v0.1.0
type Category struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id"` Type string `bson:"type" json:"type"` Name string `bson:"name" json:"name"` Sort int64 `bson:"sort" json:"sort"` CreateTime time.Time `bson:"create_time" json:"create_time"` UpdateTime time.Time `bson:"update_time" json:"update_time"` }
type Cluster ¶ added in v0.1.0
type Cluster struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id"` Name string `bson:"name" json:"name"` Kind string `bson:"kind" json:"kind"` Config string `bson:"config" json:"config"` Admin bool `bson:"admin" json:"admin"` CreateTime time.Time `bson:"create_time" json:"create_time"` UpdateTime time.Time `bson:"update_time" json:"update_time"` }
type ClusterKubeConfig ¶ added in v0.1.0
type Endpoint ¶ added in v0.2.1
type Endpoint struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id"` Name string `bson:"name" json:"name"` Kind string `bson:"kind" json:"kind"` Schedule *EndpointSchedule `bson:"schedule" json:"schedule"` Emqx *EndpointEmqx `bson:"emqx" json:"emqx"` CreateTime time.Time `bson:"create_time" json:"create_time"` UpdateTime time.Time `bson:"update_time" json:"update_time"` }
type EndpointEmqx ¶ added in v0.2.1
type EndpointSchedule ¶ added in v0.2.1
type EndpointSchedule struct {
Node string `bson:"node" json:"node"`
}
type Imessage ¶ added in v0.1.0
type Imessage struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id"` Topic string `bson:"topic" json:"topic"` Rule string `bson:"rule" json:"rule"` Description string `bson:"description" json:"description"` Projects []primitive.ObjectID `bson:"projects" json:"projects"` CreateTime time.Time `bson:"create_time" json:"create_time" farker:"-"` UpdateTime time.Time `bson:"update_time" json:"update_time" farker:"-"` }
type LogsetLogin ¶ added in v0.1.16
type LogsetLogin struct { Timestamp time.Time `bson:"timestamp" json:"timestamp"` Metadata LogsetLoginMetadata `bson:"metadata" json:"metadata"` UserAgent string `bson:"user_agent" json:"user_agent"` Detail interface{} `bson:"detail" json:"detail"` }
func NewLogsetLogin ¶ added in v0.1.16
func (*LogsetLogin) SetDetail ¶ added in v0.1.16
func (x *LogsetLogin) SetDetail(v interface{})
func (*LogsetLogin) SetVersion ¶ added in v0.1.16
func (x *LogsetLogin) SetVersion(v string)
type LogsetLoginMetadata ¶ added in v0.1.16
type Picture ¶ added in v0.1.0
type Picture struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id"` Name string `bson:"name" json:"name"` Url string `bson:"url" json:"url"` Query string `bson:"query" json:"query"` Process PictureProcess `bson:"process" json:"process"` Categories []primitive.ObjectID `bson:"categories" json:"categories"` CreateTime time.Time `bson:"create_time" json:"create_time"` UpdateTime time.Time `bson:"update_time" json:"update_time"` }
type PictureProcess ¶ added in v0.1.0
type PictureProcess struct { Mode int64 `bson:"mode" json:"mode"` Cut PictureProcessCut `bson:"cut" json:"cut"` Zoom PictureProcessZoom `bson:"zoom" json:"zoom"` }
type PictureProcessCut ¶ added in v0.1.0
type PictureProcessZoom ¶ added in v0.1.0
type Project ¶ added in v0.0.29
type Project struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id"` Name string `bson:"name" json:"name" faker:"first_name"` Namespace string `bson:"namespace" json:"namespace" faker:"username,unique"` Kind string `bson:"kind" json:"kind"` Expire *time.Time `bson:"expire" json:"expire" farker:"-"` SecretId string `bson:"secret_id" json:"secret_id" faker:"unique"` SecretKey string `bson:"secret_key" json:"secret_key"` Entry []string `bson:"entry" json:"entry" farker:"-"` Status bool `bson:"status" json:"status"` Cluster *primitive.ObjectID `bson:"cluster" json:"cluster"` Nats *ProjectNats `bson:"nats" json:"nats"` Redis *ProjectRedis `bson:"redis" json:"redis"` CreateTime time.Time `bson:"create_time" json:"create_time" farker:"-"` UpdateTime time.Time `bson:"update_time" json:"update_time" farker:"-"` }
func NewProject ¶ added in v0.0.29
type ProjectNats ¶ added in v0.2.1
type ProjectRedis ¶ added in v0.2.1
type Queue ¶ added in v0.1.0
type Queue struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id"` Project primitive.ObjectID `bson:"project" json:"project"` Name string `bson:"name" json:"name"` Description string `bson:"description" json:"description"` Subjects []string `bson:"subjects" json:"subjects"` MaxMsgs int64 `bson:"max_msgs" json:"max_msgs"` MaxBytes int64 `bson:"max_bytes" json:"max_bytes"` MaxAge time.Duration `bson:"max_age" json:"max_age"` CreateTime time.Time `bson:"create_time" json:"create_time" farker:"-"` UpdateTime time.Time `bson:"update_time" json:"update_time" farker:"-"` }
type User ¶
type User struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id"` Email string `bson:"email" json:"email"` Password string `bson:"password" json:"-"` Roles []primitive.ObjectID `bson:"roles" json:"-"` Name string `bson:"name" json:"name"` Avatar string `bson:"avatar" json:"avatar"` Phone string `bson:"phone,omitempty" json:"-"` Totp string `bson:"totp,omitempty" json:"-"` Lark *UserLark `bson:"lark,omitempty" json:"lark"` Sessions int64 `bson:"sessions,omitempty" json:"sessions"` History *LogsetLogin `bson:"history,omitempty" json:"history"` Status bool `bson:"status" json:"status"` CreateTime time.Time `bson:"create_time" json:"create_time"` UpdateTime time.Time `bson:"update_time" json:"update_time"` }
type UserLark ¶ added in v0.1.0
type UserLark struct { AccessToken string `bson:"access_token" json:"access_token"` TokenType string `bson:"token_type" json:"token_type"` ExpiresIn uint64 `bson:"expires_in" json:"expires_in"` Name string `bson:"name" json:"name"` EnName string `bson:"en_name" json:"en_name"` AvatarUrl string `bson:"avatar_url" json:"avatar_url"` AvatarThumb string `bson:"avatar_thumb" json:"avatar_thumb"` AvatarMiddle string `bson:"avatar_middle" json:"avatar_middle"` AvatarBig string `bson:"avatar_big" json:"avatar_big"` OpenId string `bson:"open_id" json:"open_id"` UnionId string `bson:"union_id" json:"union_id"` Email string `bson:"email" json:"email"` EnterpriseEmail string `bson:"enterprise_email" json:"enterprise_email"` UserId string `bson:"user_id" json:"user_id"` Mobile string `bson:"mobile" json:"mobile"` TenantKey string `bson:"tenant_key" json:"tenant_key"` RefreshExpiresIn uint64 `bson:"refresh_expires_in" json:"refresh_expires_in"` RefreshToken string `bson:"refresh_token" json:"refresh_token"` Sid string `bson:"sid" json:"sid"` }
type Video ¶ added in v0.1.0
type Video struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id"` Name string `bson:"name" json:"name"` Url string `bson:"url" json:"url"` Categories []primitive.ObjectID `bson:"categories" json:"categories"` CreateTime time.Time `bson:"create_time" json:"create_time"` UpdateTime time.Time `bson:"update_time" json:"update_time"` }
type Workflow ¶ added in v0.1.0
type Workflow struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id"` Project primitive.ObjectID `bson:"project" json:"project"` Kind string `bson:"kind" json:"kind"` Name string `bson:"name" json:"name"` Schedule *WorkflowSchedule `bson:"schedule" json:"schedule"` CreateTime time.Time `bson:"create_time" json:"create_time"` UpdateTime time.Time `bson:"update_time" json:"update_time"` }
type WorkflowSchedule ¶ added in v0.1.0
type WorkflowSchedule struct { Ref *primitive.ObjectID `bson:"ref" json:"ref"` Status bool `bson:"status" json:"status"` Jobs []WorkflowScheduleJob `bson:"jobs" json:"jobs"` }
Click to show internal directories.
Click to hide internal directories.