scheduler

package
v0.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: GPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMTU = 1400
)

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

func NewVersionCommand

func NewVersionCommand() *cobra.Command

Types

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

func (*Conn) Run

func (c *Conn) Run(ctx context.Context)

func (*Conn) SetDealFunc

func (c *Conn) SetDealFunc(f func())

type Option

type Option struct {
	LogLevel    string
	Port        int
	EnablePProf bool
	Redis       string
}

func NewOption

func NewOption() *Option

func (*Option) Validate

func (o *Option) Validate() (*Option, error)

func (*Option) WithCliFlags

func (o *Option) WithCliFlags(flags *pflag.FlagSet) *Option

func (*Option) WithDefaults

func (o *Option) WithDefaults() *Option

func (*Option) WithEnvVariables

func (o *Option) WithEnvVariables() *Option

type SchedulerConn

type SchedulerConn struct {
	Conn
}

func NewSchedulerConn

func NewSchedulerConn(
	listenPort int,
) (*SchedulerConn, error)

Jump to

Keyboard shortcuts

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