server

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const ContentTypeDownload = "application/download"

Variables

View Source
var EmbedWebDashboard embed.FS
View Source
var EmbedWebKubePi embed.FS
View Source
var EmbedWebTerminal embed.FS
View Source
var WebkubectlEntrypoint string

Functions

func Config

func Config() *v1Config.Config

func DB

func DB() *storm.DB

func Listen

func Listen(route func(party iris.Party), options ...Option) error

func Logger

func Logger() *logrus.Logger

Types

type KubePiSerer

type KubePiSerer struct {
	*iris.Application
	// contains filtered or unexported fields
}

func NewKubePiSerer

func NewKubePiSerer(opts ...Option) *KubePiSerer

type Option added in v1.2.0

type Option func(server *KubePiSerer)

func WithCustomConfigFilePath added in v1.2.0

func WithCustomConfigFilePath(path string) Option

func WithServerBindHost added in v1.2.0

func WithServerBindHost(host string) Option

func WithServerBindPort added in v1.2.0

func WithServerBindPort(port int) Option

Jump to

Keyboard shortcuts

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