files

package
v1.13.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(ctx context.Context, path string, dir string) (err error)

Types

type AutoMaxProcsConfig

type AutoMaxProcsConfig struct {
	Min int `json:"min" yaml:"min"`
	Max int `json:"max" yaml:"max"`
}

type Config

type Config struct {
	Http    *HttpConfig    `json:"http" yaml:"http,omitempty"`
	Log     *LogConfig     `json:"log" yaml:"log,omitempty"`
	Runtime *RuntimeConfig `json:"runtime" yaml:"runtime,omitempty"`
}

type ConfigFile

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

func NewConfigFile

func NewConfigFile(kind string, dir string) (cf *ConfigFile, err error)

func NewConfigFiles

func NewConfigFiles(dir string) (v []*ConfigFile, err error)

func (*ConfigFile) Name

func (cf *ConfigFile) Name() (name string)

func (*ConfigFile) Write

func (cf *ConfigFile) Write(ctx context.Context) (err error)

type HooksFile

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

func NewHooksFile

func NewHooksFile(dir string) (hooks *HooksFile, err error)

func (*HooksFile) Name

func (hooks *HooksFile) Name() (name string)

func (*HooksFile) Write

func (hooks *HooksFile) Write(ctx context.Context) (err error)

type HttpConfig

type HttpConfig struct {
	Port int `json:"port" yaml:"port,omitempty"`
}

type LogConfig

type LogConfig struct {
	Level     string `json:"level" yaml:"level,omitempty"`
	Formatter string `json:"formatter" yaml:"formatter,omitempty"`
	Color     bool   `json:"color" yaml:"color,omitempty"`
}

type MainFile

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

func NewMainFile

func NewMainFile(path string, dir string) (mf *MainFile, err error)

func (*MainFile) Name

func (mf *MainFile) Name() (name string)

func (*MainFile) Write

func (mf *MainFile) Write(ctx context.Context) (err error)

type ModFile

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

func NewModFile

func NewModFile(path string, dir string) (mf *ModFile, err error)

func (*ModFile) Name

func (mf *ModFile) Name() (name string)

func (*ModFile) Write

func (mf *ModFile) Write(ctx context.Context) (err error)

type ModulesFile

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

func NewModulesFile

func NewModulesFile(path string, dir string) (mf *ModulesFile, err error)

func (*ModulesFile) Name

func (mf *ModulesFile) Name() (name string)

func (*ModulesFile) Write

func (mf *ModulesFile) Write(ctx context.Context) (err error)

type RepositoryFile

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

func NewRepositoryFile

func NewRepositoryFile(dir string) (hooks *RepositoryFile, err error)

func (*RepositoryFile) Name

func (f *RepositoryFile) Name() (name string)

func (*RepositoryFile) Write

func (f *RepositoryFile) Write(ctx context.Context) (err error)

type RuntimeConfig

type RuntimeConfig struct {
	MaxWorkers                int                `json:"maxWorkers" yaml:"maxWorkers,omitempty"`
	WorkerMaxIdleSeconds      int                `json:"workerMaxIdleSeconds" yaml:"workerMaxIdleSeconds,omitempty"`
	HandleTimeoutSeconds      int                `json:"handleTimeoutSeconds" yaml:"handleTimeoutSeconds,omitempty"`
	LocalSharedStoreCacheSize string             `json:"localSharedStoreCacheSize" yaml:"localSharedStoreCacheSize,omitempty"`
	AutoMaxProcs              AutoMaxProcsConfig `json:"autoMaxProcs" yaml:"autoMaxProcs,omitempty"`
	SecretKey                 string             `json:"secretKey" yaml:"secretKey,omitempty"`
}

Jump to

Keyboard shortcuts

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