v1

package
v0.0.0-...-a12e884 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, cfg Configuration) (svc.Handler, error)

Types

type Configuration

type Configuration struct {
	integrationsShared.Endpoint
	integrationsShared.Database

	Prefix string
	TTL    time.Duration
}

func NewConfiguration

func NewConfiguration() Configuration

func (Configuration) Key

func (c Configuration) Key(parts ...string) string

func (Configuration) Validate

func (c Configuration) Validate() error

func (Configuration) With

type Object

type Object struct {
	Key string  `json:"_key,omitempty"`
	ID  string  `json:"_id,omitempty"`
	Rev *string `json:"_rev,omitempty"`

	Meta *ObjectMeta `json:"meta,omitempty"`

	Object ObjectProto `json:"object,omitempty"`
}

func (*Object) AsResponse

func (o *Object) AsResponse() *pbMetaV1.ObjectResponse

func (*Object) Expires

func (o *Object) Expires() time.Time

func (*Object) GetKey

func (o *Object) GetKey() string

func (*Object) GetRev

func (o *Object) GetRev() string

func (*Object) SetKey

func (o *Object) SetKey(s string)

type ObjectMeta

type ObjectMeta struct {
	Updated meta.Time `json:"updatedAt,omitempty"`

	Expires *meta.Time `json:"expiresAt,omitempty"`
}

func (*ObjectMeta) AsResponse

func (o *ObjectMeta) AsResponse() *pbMetaV1.ObjectResponseMeta

type ObjectProto

type ObjectProto struct {
	Object *anypb.Any `json:"Object,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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