server

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 100 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() *cli.Command

Types

type Server

type Server struct {
	Logger clis.Logger

	BindAddress           string
	BindWithDualStack     bool
	EnableTls             bool
	TlsCertFile           string
	TlsPrivateKeyFile     string
	TlsCertDir            string
	TlsAutoCertDomains    []string
	BootstrapPassword     string
	ConnQPS               int
	ConnBurst             int
	WebsocketConnMaxPerIP int
	GopoolWorkerFactor    int

	KubeConfig             string
	KubeConnTimeout        time.Duration
	KubeConnQPS            float64
	KubeConnBurst          int
	KubeLeaderElection     bool
	KubeLeaderLease        time.Duration
	KubeLeaderRenewTimeout time.Duration

	DataSourceAddress        string
	DataSourceConnMaxOpen    int
	DataSourceConnMaxIdle    int
	DataSourceConnMaxLife    time.Duration
	DataSourceDataEncryptAlg string
	DataSourceDataEncryptKey []byte

	CacheSourceAddress     string
	CacheSourceConnMaxOpen int
	CacheSourceConnMaxIdle int
	CacheSourceConnMaxLife time.Duration

	S3SourceAddress string

	EnableAuthn            bool
	AuthnSessionMaxIdle    time.Duration
	CasdoorServer          string
	BuiltinCatalogProvider string
}

func New

func New() *Server

func (*Server) Action

func (r *Server) Action(cmd *cli.Command)

func (*Server) Before

func (r *Server) Before(cmd *cli.Command)

func (*Server) Flags

func (r *Server) Flags(cmd *cli.Command)

func (*Server) Run

func (r *Server) Run(c context.Context) error

Jump to

Keyboard shortcuts

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