settings

package
v1.0.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

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

func NewMock

func NewMock(warcDir string, warcWriterPoolSize int) *Mock

func (Mock) FlushRecord

func (m Mock) FlushRecord() bool

func (Mock) HostName

func (m Mock) HostName() string

func (Mock) TerminationGracePeriodSeconds

func (m Mock) TerminationGracePeriodSeconds() int

func (Mock) UseStrictValidation

func (m Mock) UseStrictValidation() bool

func (Mock) WarcDir

func (m Mock) WarcDir() string

func (Mock) WarcVersion

func (m Mock) WarcVersion() *gowarc.WarcVersion

func (Mock) WarcWriterPoolSize

func (m Mock) WarcWriterPoolSize() int

func (Mock) WorkDir

func (m Mock) WorkDir() string

type Settings

type Settings interface {
	HostName() string
	WarcDir() string
	WarcWriterPoolSize() int
	WorkDir() string
	TerminationGracePeriodSeconds() int
	WarcVersion() *gowarc.WarcVersion
	FlushRecord() bool
	UseStrictValidation() bool
}

type ViperSettings

type ViperSettings struct {
}

func (ViperSettings) FlushRecord

func (s ViperSettings) FlushRecord() bool

func (ViperSettings) HostName

func (s ViperSettings) HostName() string

func (ViperSettings) TerminationGracePeriodSeconds

func (s ViperSettings) TerminationGracePeriodSeconds() int

func (ViperSettings) UseStrictValidation

func (s ViperSettings) UseStrictValidation() bool

func (ViperSettings) WarcDir

func (s ViperSettings) WarcDir() string

func (ViperSettings) WarcVersion

func (s ViperSettings) WarcVersion() *gowarc.WarcVersion

func (ViperSettings) WarcWriterPoolSize

func (s ViperSettings) WarcWriterPoolSize() int

func (ViperSettings) WorkDir

func (s ViperSettings) WorkDir() string

Jump to

Keyboard shortcuts

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