artikube

package
v0.0.0-...-9896d2c Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router struct {
	*gin.Engine
}

Router handles all incoming http requests

type Server

type Server struct {
	StorageBackend storage.Backend
	ArtifactURL    string
	Logger         *arti_logger.Logger
	Router         *arti_router.Router
}

func NewServer

func NewServer(options ServerOptions) (*Server, error)

func (*Server) Listen

func (server *Server) Listen(port int)

Listen starts a router on a port based on configuration

func (*Server) Routes

func (svr *Server) Routes() []*arti_router.Route

type ServerOptions

type ServerOptions struct {
	StorageBackend storage.Backend
	Logger         *arti_logger.Logger
	Router         *arti_router.Router
	LogJSON        bool
	Debug          bool
	ArtifactURL    string
}

ServerOptions are options

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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