config

package
v2.0.0-RC.3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllConfig

type AllConfig struct {
	RPC struct {
		Listen string `mapstructure:"listen"`
	} `mapstructure:"rpc"`
	Reload struct {
		Enabled  bool     `mapstructure:"enabled"`
		Interval string   `mapstructure:"interval"`
		Patterns []string `mapstructure:"patterns"`
		Services struct {
			HTTP struct {
				Recursive bool     `mapstructure:"recursive"`
				Ignore    []string `mapstructure:"ignore"`
				Patterns  []string `mapstructure:"patterns"`
				Dirs      []string `mapstructure:"dirs"`
			} `mapstructure:"http"`
			Jobs struct {
				Recursive bool     `mapstructure:"recursive"`
				Ignore    []string `mapstructure:"ignore"`
				Dirs      []string `mapstructure:"dirs"`
			} `mapstructure:"jobs"`
			RPC struct {
				Recursive bool     `mapstructure:"recursive"`
				Patterns  []string `mapstructure:"patterns"`
				Dirs      []string `mapstructure:"dirs"`
			} `mapstructure:"rpc"`
		} `mapstructure:"services"`
	} `mapstructure:"reload"`
}

type Foo

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

func (*Foo) Init

func (f *Foo) Init(p config.Configurer) error

Depends on S2 and DB (S3 in the current case)

func (*Foo) Serve

func (f *Foo) Serve() chan error

func (*Foo) Stop

func (f *Foo) Stop() error

type Foo2

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

func (*Foo2) Init

func (f *Foo2) Init(p config.Configurer) error

Depends on S2 and DB (S3 in the current case)

func (*Foo2) Serve

func (f *Foo2) Serve() chan error

func (*Foo2) Stop

func (f *Foo2) Stop() error

type ReloadConfig

type ReloadConfig struct {
	Interval time.Duration
	Patterns []string
	Services map[string]ServiceConfig
}

ReloadConfig is a Reload configuration point.

type ServiceConfig

type ServiceConfig struct {
	Enabled   bool
	Recursive bool
	Patterns  []string
	Dirs      []string
	Ignore    []string
}

Jump to

Keyboard shortcuts

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