common

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cos

type Cos struct {
	Bucket    string `env:"BUCKET"`
	Region    string `env:"REGION"`
	SecretId  string `env:"SECRETID"`
	SecretKey string `env:"SECRETKEY"`
}

type Inject

type Inject struct {
	V      *Values
	Client *cos.Client
}

type Values

type Values struct {
	Address string `env:"ADDRESS" envDefault:":9000"`
	Webhook string `env:"WEBHOOK,required"`
	Kind    string `env:"KIND" envDefault:"cos"`
	Cos     Cos    `envPrefix:"COS_"`
}

Jump to

Keyboard shortcuts

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