source

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Getter

type Getter interface {
	Get(ctx context.Context, key string) ([]byte, error)
}

Getter specifies how to get data from a datasource

type GetterFunc

type GetterFunc func(ctx context.Context, key string) ([]byte, error)

GetterFunc uses the same concept as http.HandlerFunc

func (GetterFunc) Get

func (f GetterFunc) Get(ctx context.Context, key string) ([]byte, error)

Get dat from datasource

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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