osinstallserver

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2017 License: Apache-2.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