Documentation ¶
Index ¶
- func Call[Req, Resp any](ctx context.Context, verb Verb[Req, Resp], req Req) (resp Resp, err error)
- type DataRef
- type Option
- func (o Option[T]) Default(value T) T
- func (o Option[T]) Get() (T, bool)
- func (o Option[T]) GoString() string
- func (o Option[T]) MarshalJSON() ([]byte, error)
- func (o Option[T]) MustGet() T
- func (o Option[T]) Ok() bool
- func (o Option[T]) Ptr() *T
- func (o *Option[T]) Scan(src any) error
- func (o Option[T]) String() string
- func (o *Option[T]) UnmarshalJSON(data []byte) error
- func (o Option[T]) Value() (driver.Value, error)
- type Sink
- type Verb
- type VerbRef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DataRef ¶
DataRef is a reference to a Data type.
func DataRefFromProto ¶
func ParseDataRef ¶
func (*DataRef) UnmarshalText ¶
type Option ¶ added in v0.78.0
type Option[T any] struct { // contains filtered or unexported fields }
An Option type is a type that can contain a value or nothing.
func Nil ¶ added in v0.78.0
Nil returns an Option that is invalid if the value is nil, otherwise the value.
If the type is not nillable (slice, map, chan, ptr, interface) this will panic.
func Ptr ¶ added in v0.78.0
Ptr returns an Option that is invalid if the pointer is nil, otherwise the dereferenced pointer.
func Zero ¶ added in v0.78.0
Zero returns an Option that is invalid if the value is the zero value, otherwise the value.
func (Option[T]) Default ¶ added in v0.78.0
func (o Option[T]) Default(value T) T
Default returns the Option value if it is present, otherwise it returns the value passed.
func (Option[T]) Get ¶ added in v0.78.0
Get returns the value and a boolean indicating if the Option contains a value.
func (Option[T]) MarshalJSON ¶ added in v0.78.0
func (Option[T]) MustGet ¶ added in v0.78.0
func (o Option[T]) MustGet() T
MustGet returns the value. It panics if the Option contains nothing.
func (Option[T]) Ptr ¶ added in v0.78.0
func (o Option[T]) Ptr() *T
Ptr returns a pointer to the value if the Option contains a value, otherwise nil.
func (*Option[T]) UnmarshalJSON ¶ added in v0.78.0
type VerbRef ¶
VerbRef is a reference to a Verb.
func ParseVerbRef ¶
func VerbRefFromProto ¶
func (*VerbRef) UnmarshalText ¶
Directories ¶
Path | Synopsis |
---|---|
Package kvstore provides a generic key-value store.
|
Package kvstore provides a generic key-value store. |