kv

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetOptions

type GetOptions struct {
	Type     string `json:"type"`
	CacheTTL int    `json:"cacheTtl,omitempty"`
}

func (GetOptions) MarshalEasyJSON

func (v GetOptions) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (*GetOptions) UnmarshalEasyJSON

func (v *GetOptions) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

type PutOptions

type PutOptions struct {
	Expiration    int            `json:"expiration,omitempty"`
	ExpirationTTL int            `json:"expirationTtl,omitempty"`
	Metadata      map[string]any `json:"metadata,omitempty"`
}

func (PutOptions) MarshalEasyJSON

func (v PutOptions) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (*PutOptions) UnmarshalEasyJSON

func (v *PutOptions) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

type StringWithMetadata

type StringWithMetadata struct {
	Value    string         `json:"value"`
	Metadata map[string]any `json:"metadata"`
}

func (StringWithMetadata) MarshalEasyJSON

func (v StringWithMetadata) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (*StringWithMetadata) UnmarshalEasyJSON

func (v *StringWithMetadata) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

Jump to

Keyboard shortcuts

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