utils

package
v4.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(v interface{}) (string, error)

Types

type Cache

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

func NewCache

func NewCache(lifetime time.Duration) *Cache

func (*Cache) Get

func (c *Cache) Get(key string) ([]byte, bool)

func (*Cache) Invalidate

func (c *Cache) Invalidate(key string)

func (*Cache) Set

func (c *Cache) Set(key string, value []byte)

type Type

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

func NewType

func NewType() Type

func (Type) List

func (t Type) List() map[string]string

func (Type) Value

func (t Type) Value(key string) string

Jump to

Keyboard shortcuts

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