table

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const FileModName = "table.file"

Variables

This section is empty.

Functions

func NewChain added in v0.5.0

func NewChain(modName, instName string, _, _ []string) (module.Module, error)

func NewEmailLocalpart added in v0.5.0

func NewEmailLocalpart(modName, instName string, _, _ []string) (module.Module, error)

func NewEmailWithDomain added in v0.7.0

func NewEmailWithDomain(modName, instName string, _, inlineArgs []string) (module.Module, error)

func NewFile

func NewFile(_, instName string, _, inlineArgs []string) (module.Module, error)

func NewIdentity

func NewIdentity(modName, instName string, _, _ []string) (module.Module, error)

func NewRegexp

func NewRegexp(modName, instName string, _, inlineArgs []string) (module.Module, error)

func NewSQL

func NewSQL(modName, instName string, _, _ []string) (module.Module, error)

func NewSQLTable added in v0.3.0

func NewSQLTable(modName, instName string, _, _ []string) (module.Module, error)

func NewStatic

func NewStatic(modName, instName string, _, _ []string) (module.Module, error)

Types

type Chain added in v0.5.0

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

func (*Chain) Init added in v0.5.0

func (s *Chain) Init(cfg *config.Map) error

func (*Chain) InstanceName added in v0.5.0

func (s *Chain) InstanceName() string

func (*Chain) Lookup added in v0.5.0

func (s *Chain) Lookup(ctx context.Context, key string) (string, bool, error)

func (*Chain) LookupMulti added in v0.6.0

func (s *Chain) LookupMulti(ctx context.Context, key string) ([]string, error)

func (*Chain) Name added in v0.5.0

func (s *Chain) Name() string

type EmailLocalpart added in v0.5.0

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

func (*EmailLocalpart) Init added in v0.5.0

func (s *EmailLocalpart) Init(cfg *config.Map) error

func (*EmailLocalpart) InstanceName added in v0.5.0

func (s *EmailLocalpart) InstanceName() string

func (*EmailLocalpart) Lookup added in v0.5.0

func (s *EmailLocalpart) Lookup(ctx context.Context, key string) (string, bool, error)

func (*EmailLocalpart) Name added in v0.5.0

func (s *EmailLocalpart) Name() string

type EmailWithDomain added in v0.7.0

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

func (*EmailWithDomain) Init added in v0.7.0

func (s *EmailWithDomain) Init(cfg *config.Map) error

func (*EmailWithDomain) InstanceName added in v0.7.0

func (s *EmailWithDomain) InstanceName() string

func (*EmailWithDomain) Lookup added in v0.7.0

func (s *EmailWithDomain) Lookup(ctx context.Context, key string) (string, bool, error)

func (*EmailWithDomain) LookupMulti added in v0.7.0

func (s *EmailWithDomain) LookupMulti(ctx context.Context, key string) ([]string, error)

func (*EmailWithDomain) Name added in v0.7.0

func (s *EmailWithDomain) Name() string

type File

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

func (*File) Close

func (f *File) Close() error

func (*File) Init

func (f *File) Init(cfg *config.Map) error

func (*File) InstanceName

func (f *File) InstanceName() string

func (*File) Lookup

func (f *File) Lookup(_ context.Context, val string) (string, bool, error)

func (*File) LookupMulti added in v0.5.0

func (f *File) LookupMulti(_ context.Context, val string) ([]string, error)

func (*File) Name

func (f *File) Name() string

type Identity

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

func (*Identity) Init

func (s *Identity) Init(cfg *config.Map) error

func (*Identity) InstanceName

func (s *Identity) InstanceName() string

func (*Identity) Lookup

func (s *Identity) Lookup(_ context.Context, key string) (string, bool, error)

func (*Identity) Name

func (s *Identity) Name() string

type Regexp

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

func (*Regexp) Init

func (r *Regexp) Init(cfg *config.Map) error

func (*Regexp) InstanceName

func (r *Regexp) InstanceName() string

func (*Regexp) Lookup

func (r *Regexp) Lookup(ctx context.Context, key string) (string, bool, error)

func (*Regexp) LookupMulti added in v0.6.0

func (r *Regexp) LookupMulti(_ context.Context, key string) ([]string, error)

func (*Regexp) Name

func (r *Regexp) Name() string

type SQL

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

func (*SQL) Close

func (s *SQL) Close() error

func (*SQL) Init

func (s *SQL) Init(cfg *config.Map) error

func (*SQL) InstanceName

func (s *SQL) InstanceName() string

func (*SQL) Keys added in v0.3.0

func (s *SQL) Keys() ([]string, error)

func (*SQL) Lookup

func (s *SQL) Lookup(ctx context.Context, val string) (string, bool, error)

func (*SQL) LookupMulti added in v0.5.0

func (s *SQL) LookupMulti(ctx context.Context, val string) ([]string, error)

func (*SQL) Name

func (s *SQL) Name() string

func (*SQL) RemoveKey added in v0.3.0

func (s *SQL) RemoveKey(k string) error

func (*SQL) SetKey added in v0.3.0

func (s *SQL) SetKey(k, v string) error

type SQLTable added in v0.3.0

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

func (*SQLTable) Close added in v0.3.0

func (s *SQLTable) Close() error

func (*SQLTable) Init added in v0.3.0

func (s *SQLTable) Init(cfg *config.Map) error

func (*SQLTable) InstanceName added in v0.3.0

func (s *SQLTable) InstanceName() string

func (*SQLTable) Keys added in v0.3.0

func (s *SQLTable) Keys() ([]string, error)

func (*SQLTable) Lookup added in v0.3.0

func (s *SQLTable) Lookup(ctx context.Context, val string) (string, bool, error)

func (*SQLTable) LookupMulti added in v0.5.0

func (s *SQLTable) LookupMulti(ctx context.Context, val string) ([]string, error)

func (*SQLTable) Name added in v0.3.0

func (s *SQLTable) Name() string

func (*SQLTable) RemoveKey added in v0.3.0

func (s *SQLTable) RemoveKey(k string) error

func (*SQLTable) SetKey added in v0.3.0

func (s *SQLTable) SetKey(k, v string) error

type Static

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

func (*Static) Init

func (s *Static) Init(cfg *config.Map) error

func (*Static) InstanceName

func (s *Static) InstanceName() string

func (*Static) Lookup

func (s *Static) Lookup(ctx context.Context, key string) (string, bool, error)

func (*Static) LookupMulti added in v0.6.0

func (s *Static) LookupMulti(ctx context.Context, key string) ([]string, error)

func (*Static) Name

func (s *Static) Name() string

Jump to

Keyboard shortcuts

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