Documentation ¶
Index ¶
- Constants
- type Ability
- func (a *Ability) AI() (*ability.AI, error)
- func (a *Ability) Destroy()
- func (a *Ability) FFmpeg() (*ability.FFmpeg, error)
- func (a *Ability) FS() *ability.FS
- func (a *Ability) KV() (*ability.KV, error)
- func (a *Ability) Message() (*ability.Message, error)
- func (a *Ability) Schedule() (*ability.Schedule, error)
- type AbilityInterface
- type AppBuilder
- type AppStruct
- func (a *AppStruct) Destroy()
- func (a *AppStruct) GetAPIBuilder() *router.APIBuilder
- func (a *AppStruct) GetIcon(ctx iris.Context)
- func (a *AppStruct) InitAbility()
- func (a *AppStruct) StartWebServer()
- func (a *AppStruct) WithAI()
- func (a *AppStruct) WithFFmpeg()
- func (a *AppStruct) WithFS()
- func (a *AppStruct) WithFileEventMonitor(preferOps ...sdkdto.PreferOptions)
- func (a *AppStruct) WithKV()
- func (a *AppStruct) WithMessage()
- func (a *AppStruct) WithMigrator(migrator ability.IMigrator)
- func (a *AppStruct) WithSchedule()
- type ModelMigrator
Constants ¶
View Source
const (
AppCodeEnvKey = "APPCODE"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ability ¶ added in v0.2.3
type Ability struct {
// contains filtered or unexported fields
}
Ability app ability set
type AbilityInterface ¶ added in v0.5.4
type AbilityInterface interface { // Name of ability Name() string // Close resources Close() }
AbilityInterface ability interface
type AppBuilder ¶ added in v0.4.16
type AppBuilder struct {
// contains filtered or unexported fields
}
AppBuilder app builder
func NewAppBuilder ¶ added in v0.4.16
func NewAppBuilder(appCode string) *AppBuilder
NewAppBuilder new a custom app builder
func (*AppBuilder) Build ¶ added in v0.4.16
func (b *AppBuilder) Build()
func (*AppBuilder) WithDB ¶ added in v0.4.16
func (b *AppBuilder) WithDB(db *gorm.DB) *AppBuilder
func (*AppBuilder) WithNC ¶ added in v0.4.18
func (b *AppBuilder) WithNC(nc *nats.Conn) *AppBuilder
func (*AppBuilder) WithWebServer ¶ added in v0.10.0
func (b *AppBuilder) WithWebServer() *AppBuilder
type AppStruct ¶ added in v0.1.23
type AppStruct struct { AppCode string // app code Ability *Ability // app ability // contains filtered or unexported fields }
var App *AppStruct
func (*AppStruct) GetAPIBuilder ¶ added in v0.10.0
func (a *AppStruct) GetAPIBuilder() *router.APIBuilder
GetAPIBuilder get web server api builder
func (*AppStruct) GetIcon ¶ added in v0.10.0
func (a *AppStruct) GetIcon(ctx iris.Context)
GetIcon get app icon file
func (*AppStruct) InitAbility ¶ added in v0.9.11
func (a *AppStruct) InitAbility()
InitAbility init ability
func (*AppStruct) StartWebServer ¶ added in v0.10.0
func (a *AppStruct) StartWebServer()
func (*AppStruct) WithFFmpeg ¶ added in v0.5.4
func (a *AppStruct) WithFFmpeg()
WithFFmpeg add ffmpeg support
func (*AppStruct) WithFileEventMonitor ¶ added in v0.9.11
func (a *AppStruct) WithFileEventMonitor(preferOps ...sdkdto.PreferOptions)
WithFileEventMonitor add file event monitor support
func (*AppStruct) WithMessage ¶ added in v0.5.4
func (a *AppStruct) WithMessage()
WithMessage add message support
func (*AppStruct) WithMigrator ¶ added in v0.9.2
WithMigrator add migrator
func (*AppStruct) WithSchedule ¶ added in v0.7.0
func (a *AppStruct) WithSchedule()
WithSchedule add schedule support
type ModelMigrator ¶ added in v0.9.11
type ModelMigrator struct {
// contains filtered or unexported fields
}
ModelMigrator migrate schema according to the model
func NewModelMigrator ¶ added in v0.9.11
func NewModelMigrator(models ...any) *ModelMigrator
func (*ModelMigrator) Migrate ¶ added in v0.9.12
func (m *ModelMigrator) Migrate(ugn *utils.UserGroupNamespace) error
Click to show internal directories.
Click to hide internal directories.