osinstallserver

package
v0.0.0-...-869e999 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DevPipeline

func DevPipeline(conf *config.Config, log logger.Logger, repo model.Repo) []rest.Middleware

DevPipeline 开发用中间件栈

func TestPipeline

func TestPipeline(conf *config.Config, log logger.Logger, repo model.Repo) []rest.Middleware

TestPipeline 测试用中间件栈

Types

type OsInstallServer

type OsInstallServer struct {
	Conf *config.Config
	Log  logger.Logger
	Repo model.Repo
	// contains filtered or unexported fields
}

func NewServer

func NewServer(log logger.Logger, conf *config.Config, setup PipelineSetupFunc) (*OsInstallServer, error)

NewServer 实例化http server

func (*OsInstallServer) ServeHTTP

func (server *OsInstallServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

type PipelineSetupFunc

type PipelineSetupFunc func(conf *config.Config, log logger.Logger, repo model.Repo) []rest.Middleware

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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