config

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2018 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChunkAutoInterval added in v0.8.0

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

func NewChunkAutoInterval added in v0.8.0

func NewChunkAutoInterval() *ChunkAutoInterval

func (*ChunkAutoInterval) GetDefault added in v0.8.0

func (c *ChunkAutoInterval) GetDefault() time.Duration

func (*ChunkAutoInterval) GetInterval added in v0.8.0

func (c *ChunkAutoInterval) GetInterval(unhandledCount int) time.Duration

func (*ChunkAutoInterval) MarshalText added in v0.8.0

func (c *ChunkAutoInterval) MarshalText() ([]byte, error)

func (*ChunkAutoInterval) SetDefault added in v0.8.0

func (c *ChunkAutoInterval) SetDefault(v time.Duration)

func (*ChunkAutoInterval) UnmarshalText added in v0.8.0

func (c *ChunkAutoInterval) UnmarshalText(p []byte) error

UnmarshalText from TOML

type Duration

type Duration struct {
	time.Duration
}

Duration wrapper time.Duration for TOML

func (*Duration) MarshalText

func (d *Duration) MarshalText() ([]byte, error)

MarshalText encode text with TOML format

func (*Duration) UnmarshalText

func (d *Duration) UnmarshalText(text []byte) error

UnmarshalText from TOML

func (*Duration) Value

func (d *Duration) Value() time.Duration

Value return time.Duration value

Jump to

Keyboard shortcuts

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