Documentation ¶
Index ¶
- Constants
- func GROUP() string
- func GROUPID() int64
- func GUIDE() string
- func Load(configPath string) error
- func NewWatchConfig(ctx context.Context) *watchs
- func Wathc()
- type Api
- type Config
- type ControlPreProcess
- type ControlProcess
- type Embedding
- type ExtraModel
- type Model
- type SortEmbedding
- type SortExtraModel
Constants ¶
View Source
const ConfigPath = "./config.yaml"
Variables ¶
This section is empty.
Functions ¶
func NewWatchConfig ¶
Types ¶
type Config ¶
type Config struct { Api []Api Model []Model Embedding []Embedding ExtraModel []ExtraModel GroupID int64 Group string Guide string ControlPreProcess []ControlPreProcess ControlProcess []ControlProcess }
type ControlPreProcess ¶
type ControlPreProcess struct {
Name string
}
func PreProcess ¶
func PreProcess() []ControlPreProcess
type ControlProcess ¶
func Process ¶
func Process() []ControlProcess
type Embedding ¶
func ALLEmbedding ¶
func ALLEmbedding() []Embedding
type ExtraModel ¶
type ExtraModel struct { Name string NameExt string Preview string Type string TriggerWords []string Group []string }
func ALLExtraModel ¶
func ALLExtraModel() []ExtraModel
func ExtraModelWithGroup ¶
func ExtraModelWithGroup(group string) []ExtraModel
type SortEmbedding ¶
type SortEmbedding []Embedding
func (SortEmbedding) Len ¶
func (x SortEmbedding) Len() int
func (SortEmbedding) Less ¶
func (x SortEmbedding) Less(i, j int) bool
func (SortEmbedding) Swap ¶
func (x SortEmbedding) Swap(i, j int)
type SortExtraModel ¶
type SortExtraModel []ExtraModel
func (SortExtraModel) Len ¶
func (x SortExtraModel) Len() int
func (SortExtraModel) Less ¶
func (x SortExtraModel) Less(i, j int) bool
func (SortExtraModel) Swap ¶
func (x SortExtraModel) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.