conf

package
v0.0.0-...-6db4251 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Container = &DockerContainerConfig{}
View Source
var RabbitMQ = &RabbitMQConfig{}
View Source
var Volume = &VolumePathConfig{}

Functions

func InitConfig

func InitConfig()

Types

type DockerContainerConfig

type DockerContainerConfig struct {
	ImageRepository string // 容器名字
	ImageTag        string // 容器版本
}

func (DockerContainerConfig) GetImageName

func (conf DockerContainerConfig) GetImageName() string

type RabbitMQConfig

type RabbitMQConfig struct {
	Host     string
	Username string
	Password string
}

func (RabbitMQConfig) GetURL

func (conf RabbitMQConfig) GetURL() string

type VolumePathConfig

type VolumePathConfig struct {
	CodeHostPath   string // 存放代码宿主机路径
	CodeTargetPath string // 挂载到容器内的代码路径
	CaseHostPath   string // 存放测试样例文件(输入文件)宿主机路径
	CaseTargetPath string // 挂载到容器内样例文件路径

	AnswerHostPath string // 答案文件主机路径
}

func (*VolumePathConfig) GetCasePath

func (volume *VolumePathConfig) GetCasePath() string

func (*VolumePathConfig) GetCodePath

func (volume *VolumePathConfig) GetCodePath() string

Jump to

Keyboard shortcuts

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