source

package
v0.0.0-...-bfae2a7 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextSource

type ContextSource struct {
	Key string
}

func (*ContextSource) Get

func (ts *ContextSource) Get(ctx context.Context) (string, error)

type Source

type Source interface {
	Get(context.Context) (string, error)
}

type StaticSource

type StaticSource struct {
	Value string
}

func (*StaticSource) Get

func (ts *StaticSource) Get(_ context.Context) (string, error)

Jump to

Keyboard shortcuts

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