global

package
v0.0.0-...-5cccba7 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

*

  • Created by zc on 2020/9/5.

*

  • Created by zc on 2020/9/5.

*

  • Created by zc on 2020/9/5.

Index

Constants

View Source
const DefaultRepoTimeout = 30
View Source
const EnvPrefix = "DRONE_CONTROL"
View Source
const PathStageLog = "slogs"
View Source
const ServerPort = 2639

Variables

This section is empty.

Functions

func DB

func DB() *sql.DB

func DroneDB

func DroneDB() *dronedb.DB

func GormDB

func GormDB() *gorm.DB

func InitCfg

func InitCfg(cfg *Config) error

func InitScheduler

func InitScheduler(db *dronedb.DB)

func LogStream

func LogStream() core.LogStream

func Scheduler

func Scheduler() core.Scheduler

Types

type Config

type Config struct {
	Server   server.Config       `json:"server"`
	Cleanup  droneconfig.Cleanup `json:"cleanup"`
	RPC      droneconfig.RPC     `json:"rpc"`
	Database database.Config     `json:"database"`
}

func Cfg

func Cfg() *Config

func Environ

func Environ() *Config

func ParseConfig

func ParseConfig(cfgPath string) (*Config, error)

Directories

Path Synopsis
* * Created by zc on 2020/11/23.
* * Created by zc on 2020/11/23.

Jump to

Keyboard shortcuts

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