Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonMarshaler ¶
type JsonMarshaler[T any] struct { }
JsonMarshaler is an implementation of Marshaler that uses JSON.
type Marshaler ¶
type Marshaler[T any] interface { // Marshal marshals a go struct into a string. Marshal(ctx context.Context, value T) (string, error) // Unmarshal unmarshals a string into a go struct. Unmarshal(ctx context.Context, valueString string, value *T) error }
Marshaler is an interface contract for marshalling values from Go structs into strings that can be stored in Redis.
Click to show internal directories.
Click to hide internal directories.