Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
func (c Configuration) With(mods ...util.ModR[Configuration]) Configuration
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
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 ¶
Click to show internal directories.
Click to hide internal directories.