model

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssemblyObj

type AssemblyObj struct {
	// contains filtered or unexported fields
}

func (*AssemblyObj) GetObj

func (a *AssemblyObj) GetObj() interface{}

func (*AssemblyObj) SetObj

func (a *AssemblyObj) SetObj(ob interface{})

type CosConf

type CosConf struct {
	Public  *cosCfg `json:"public"`
	Private *cosCfg `json:"private"`
}

cos配置

type DbConf

type DbConf struct {
	Host     string `json:"host"`     // 主机
	Port     int    `json:"port"`     // 端口
	User     string `json:"user"`     // 用户名
	Password string `json:"password"` // 用户密码
	Database string `json:"database"` // 数据库名
}

Conf 数据库配置

type EtcdConf added in v0.0.2

type EtcdConf struct {
	Endpoints            []string      `json:"endpoints"`
	AutoSyncInterval     time.Duration `json:"auto-sync-interval"`
	DialTimeout          time.Duration `json:"dial-timeout"`
	DialKeepAliveTime    time.Duration `json:"dial-keep-alive-time"`
	DialKeepAliveTimeout time.Duration `json:"dial-keep-alive-timeout"`
	MaxCallSendMsgSize   int
	MaxCallRecvMsgSize   int
}

type GrpcCallConf

type GrpcCallConf struct {
	ClientName string   `json:"clientName"`
	ServerName []string `json:"serverName"`
	Timeout    int      `json:"timeOut"`
}

grpc接口超时配置

type KafkaConf

type KafkaConf struct {
	KafkaServer string   `json:"kafka-server"` // kafka服务地址
	Topic       []string `json:"topic"`        // 主题
}

type MailConf added in v0.0.2

type MailConf struct {
	User     string
	PassWord string
	Host     string
	Port     int
}

type PanicReq

type PanicReq struct {
	Service        string `json:"service"`
	ErrorInfo      string `json:"error_info"`
	Stack          string `json:"stack"`
	LogId          string `json:"log_id"`
	FuncName       string `json:"func_name"`
	Host           string `json:"host"`
	PodName        string `json:"pod_name"`
	LastCommitUser string `json:"last_commit_user"`
	CommitTime     string `json:"commit_time"`
	FileName       string `json:"file_name"`
}

type RedisConf

type RedisConf struct {
	Host     string `json:"host"`     // 主机
	Port     int    `json:"port"`     // 端口
	Password string `json:"password"` // 密码
	Type     string `json:"type"`     // 密码
}

Redis 配置

type TaskConfig

type TaskConfig struct {
	Name string `json:"name"` // 定时任务名称
	Exec bool   `json:"exec"` // 是否执行
	Unit string `json:"unit"` // 时间单位
	Time uint64 `json:"time"` // 间隔时间
}

定时任务配置

Jump to

Keyboard shortcuts

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