profile

package
v0.0.0-...-9ad353d Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: MIT Imports: 0 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name  string
	Value string
}

func NewField

func NewField() *Field

type Loader

type Loader interface {
	LoadProfile() (*Profile, error)
}

type Profile

type Profile []*Field

func NewProfile

func NewProfile() *Profile

NewProfile create mew profile

func (*Profile) Chain

func (p *Profile) Chain(profiles ...*Profile) *Profile

func (*Profile) Clone

func (p *Profile) Clone() *Profile

func (*Profile) Data

func (p *Profile) Data() []*Field

func (*Profile) Filter

func (p *Profile) Filter(names ...string) *Profile

func (*Profile) Load

func (p *Profile) Load(name string) string

func (*Profile) LoadAllByName

func (p *Profile) LoadAllByName(name string) []string

func (*Profile) LoadAny

func (p *Profile) LoadAny(names ...string) string

func (*Profile) With

func (p *Profile) With(name string, value string) *Profile

func (*Profile) WithFields

func (p *Profile) WithFields(f ...*Field) *Profile

type Provider

type Provider interface {
	GetProfile(id string) (*Profile, error)
}

Jump to

Keyboard shortcuts

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