file

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResolver

func NewResolver(file string) (resolver.IResolver, error)

Types

type Entry

type Entry struct {
	Value    string    `json:"value"`
	Lifetime time.Time `json:"lifetime"`
}

type Resolver

type Resolver struct {
	resolver.IResolver
	// contains filtered or unexported fields
}

func (*Resolver) Get

func (r *Resolver) Get(key string) (string, error)

func (*Resolver) Set

func (r *Resolver) Set(key string, val string, timeout int64) error

type ResolverMap

type ResolverMap map[string]Entry

Jump to

Keyboard shortcuts

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