service_config

package
v0.0.0-...-cbb317a Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Local

type Local struct {
	weaver.AutoMarshal
	Path      string `mapstructure:"path" json:"path" yaml:"path"`
	StorePath string `mapstructure:"store-path" json:"store-path" yaml:"store-path"`
}

func (*Local) WeaverMarshal

func (x *Local) WeaverMarshal(enc *codegen.Encoder)

func (*Local) WeaverUnmarshal

func (x *Local) WeaverUnmarshal(dec *codegen.Decoder)

type ModCaptcha

type ModCaptcha struct {
	weaver.AutoMarshal
	KeyLong            int `mapstructure:"key-long" json:"key-long" yaml:"key-long"`
	ImgWidth           int `mapstructure:"img-width" json:"img-width" yaml:"img-width"`
	ImgHeight          int `mapstructure:"img-height" json:"img-height" yaml:"img-height"`
	OpenCaptcha        int `mapstructure:"open-captcha" json:"open-captcha" yaml:"open-captcha"`
	OpenCaptchaTimeOut int `mapstructure:"open-captcha-timeout" json:"open-captcha-timeout" yaml:"open-captcha-timeout"`
}

func (*ModCaptcha) WeaverMarshal

func (x *ModCaptcha) WeaverMarshal(enc *codegen.Encoder)

func (*ModCaptcha) WeaverUnmarshal

func (x *ModCaptcha) WeaverUnmarshal(dec *codegen.Decoder)

type ModSwaConfig

type ModSwaConfig struct {
	weaver.AutoMarshal
	Jwt     ModJwt     `mapstructure:"jwt" json:"jwt" toml:"jwt"`
	Redis   ModRedis   `mapstructure:"redis" json:"redis" toml:"redis"`
	Captcha ModCaptcha `mapstructure:"captcha" json:"captcha" toml:"captcha"`
	GormDB  ModGormDb  `mapstructure:"gormDB" json:"gormDB" toml:"gormDB"`
	System  ModSystem  `mapstructure:"system" json:"system" toml:"system"`
	Local   Local      `mapstructure:"local" json:"local" toml:"local"`
}

func (*ModSwaConfig) WeaverMarshal

func (x *ModSwaConfig) WeaverMarshal(enc *codegen.Encoder)

func (*ModSwaConfig) WeaverUnmarshal

func (x *ModSwaConfig) WeaverUnmarshal(dec *codegen.Decoder)

type ModSystem

type ModSystem struct {
	weaver.AutoMarshal
	Env           string `mapstructure:"env" json:"env" yaml:"env"`
	Addr          int    `mapstructure:"addr" json:"addr" yaml:"addr"`
	DbType        string `mapstructure:"db-type" json:"db-type" yaml:"db-type"`
	OssType       string `mapstructure:"oss-type" json:"oss-type" yaml:"oss-type"`
	UseMultipoint bool   `mapstructure:"use-multipoint" json:"use-multipoint" yaml:"use-multipoint"`
	UseRedis      bool   `mapstructure:"use-redis" json:"use-redis" yaml:"use-redis"`
	LimitCountIP  int    `mapstructure:"ip-limit-count" json:"ip-limit-count" yaml:"ip-limit-count"`
	LimitTimeIP   int    `mapstructure:"ip-limit-time" json:"ip-limit-time" yaml:"ip-limit-time"`
	RouterPrefix  string `mapstructure:"router-prefix" json:"router-prefix" yaml:"router-prefix"`
}

func (*ModSystem) WeaverMarshal

func (x *ModSystem) WeaverMarshal(enc *codegen.Encoder)

func (*ModSystem) WeaverUnmarshal

func (x *ModSystem) WeaverUnmarshal(dec *codegen.Decoder)

type T

type T interface {
	SetCfgGormDb(ctx context.Context, m ModGormDb) error

	GetCfgSwaConfig(ctx context.Context) (ModSwaConfig, error)
	GetCfgGormDb(ctx context.Context) (ModGormDb, error)
	GetCfgJwt(ctx context.Context) (ModJwt, error)
	SetSystemConfig(_ context.Context, system ModSwaConfig) (err error)
}

Jump to

Keyboard shortcuts

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