json

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncedJSON

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

func NewSyncedJSON

func NewSyncedJSON(
	ctx context.Context, file, fileContext, uri string, transport http.RoundTripper, roundTripName string,
	ttl time.Duration, maxStale time.Duration, unmarshaller SyncedJSONUnmarshaller) (*SyncedJSON, error)

func (*SyncedJSON) Data

func (s *SyncedJSON) Data() (interface{}, error)

type SyncedJSONUnmarshaller

type SyncedJSONUnmarshaller interface {
	Unmarshal(rawJSON []byte) (interface{}, error)
}

Jump to

Keyboard shortcuts

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