store

package module
v0.0.0-...-6d3effd Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore(conn string) (*Store, error)

func (*Store) Close

func (s *Store) Close()

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, t, id string) error

func (*Store) List

func (s *Store) List(ctx context.Context, t string, factory func() any) ([]any, error)

func (*Store) Read

func (s *Store) Read(ctx context.Context, t, id string, factory func() any) (any, error)

func (*Store) Write

func (s *Store) Write(ctx context.Context, t string, obj any) error

Jump to

Keyboard shortcuts

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