server

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 84 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
	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
	CacheSourceMaxLife     time.Duration

	EnableAuthn         bool
	AuthnSessionMaxIdle time.Duration
	CasdoorServer       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