siyouyunsdk

package module
v0.10.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

README

siyouyun_sdk

Siyouyun Mini App SDK

Documentation

Index

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

func (*Ability) AI added in v0.5.3

func (a *Ability) AI() (*ability.AI, error)

func (*Ability) Destroy added in v0.5.4

func (a *Ability) Destroy()

func (*Ability) FFmpeg added in v0.2.3

func (a *Ability) FFmpeg() (*ability.FFmpeg, error)

func (*Ability) FS added in v0.5.4

func (a *Ability) FS() *ability.FS

func (*Ability) KV added in v0.2.3

func (a *Ability) KV() (*ability.KV, error)

func (*Ability) Message added in v0.2.47

func (a *Ability) Message() (*ability.Message, error)

func (*Ability) Schedule added in v0.2.29

func (a *Ability) Schedule() (*ability.Schedule, error)

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 NewApp

func NewApp() *AppStruct

NewApp new standard app

func (*AppStruct) Destroy added in v0.5.4

func (a *AppStruct) Destroy()

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) WithAI added in v0.5.4

func (a *AppStruct) WithAI()

WithAI add AI support

func (*AppStruct) WithFFmpeg added in v0.5.4

func (a *AppStruct) WithFFmpeg()

WithFFmpeg add ffmpeg support

func (*AppStruct) WithFS added in v0.5.4

func (a *AppStruct) WithFS()

WithFS add fs support

func (*AppStruct) WithFileEventMonitor added in v0.9.11

func (a *AppStruct) WithFileEventMonitor(preferOps ...sdkdto.PreferOptions)

WithFileEventMonitor add file event monitor support

func (*AppStruct) WithKV added in v0.5.4

func (a *AppStruct) WithKV()

WithKV add kv 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

func (a *AppStruct) WithMigrator(migrator ability.IMigrator)

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

Directories

Path Synopsis
internal
rdb
pkg
dto
log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL