sync

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package sync handles synchronized read and write access to config values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

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

Bool type with concurrent access support.

func (*Bool) Get

func (b *Bool) Get() bool

Get returns the internal value.

func (*Bool) Set

func (b *Bool) Set(value bool)

Set a value.

func (*Bool) SetString added in v0.6.0

func (b *Bool) SetString(val string) error

SetString parses and sets a value from string type.

func (*Bool) String added in v0.4.0

func (b *Bool) String() string

String returns string representation of value.

type Float64

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

Float64 type with concurrent access support.

func (*Float64) Get

func (f *Float64) Get() float64

Get returns the internal value.

func (*Float64) Set

func (f *Float64) Set(value float64)

Set a value.

func (*Float64) SetString added in v0.6.0

func (f *Float64) SetString(val string) error

SetString parses and sets a value from string type.

func (*Float64) String added in v0.4.0

func (f *Float64) String() string

String returns string representation of value.

type Int64

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

Int64 type with concurrent access support.

func (*Int64) Get

func (i *Int64) Get() int64

Get returns the internal value.

func (*Int64) Set

func (i *Int64) Set(value int64)

Set a value.

func (*Int64) SetString added in v0.6.0

func (i *Int64) SetString(val string) error

SetString parses and sets a value from string type.

func (*Int64) String added in v0.4.0

func (i *Int64) String() string

String returns string representation of value.

type Secret added in v0.4.0

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

Secret string type for secrets with concurrent access support.

func (*Secret) Get added in v0.4.0

func (s *Secret) Get() string

Get returns the internal value.

func (*Secret) Set added in v0.4.0

func (s *Secret) Set(value string)

Set a value.

func (*Secret) SetString added in v0.6.0

func (s *Secret) SetString(val string) error

SetString parses and sets a value from string type.

func (*Secret) String added in v0.4.0

func (s *Secret) String() string

String returns obfuscated string representation of value.

type String

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

String type with concurrent access support.

func (*String) Get

func (s *String) Get() string

Get returns the internal value.

func (*String) Set

func (s *String) Set(value string)

Set a value.

func (*String) SetString added in v0.6.0

func (s *String) SetString(val string) error

SetString parses and sets a value from string type.

func (*String) String added in v0.4.0

func (s *String) String() string

String returns string representation of value.

Jump to

Keyboard shortcuts

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