core

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port int64 `config:"port,default=8080"`
	//
	Upstream string `config:"upstream,default=https://proxy.golang.org,direct"`
	//
	SumDB string `config:"sumdb,default=sum.golang.org"`
	//
	Private string `config:"private,default=*.corp.example.com|*.cn"`
	//
	Proxy string `config:"proxy,default=direct"`
}

Config ...

type Core

type Core interface {
	Version() string
	Run() error
}

Core ...

func New

func New(version string, cfg *Config) (Core, error)

New ...

Jump to

Keyboard shortcuts

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