localstate

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	CreateDashboard(ctx context.Context, req *dashboardv1.CreateDashboardRequest) (*typesv1.Dashboard, error)
	GetDashboard(ctx context.Context, id string) (*typesv1.Dashboard, error)
	UpdateDashboard(ctx context.Context, id string, mutations []*dashboardv1.UpdateDashboardRequest_Mutation) (*typesv1.Dashboard, error)
	DeleteDashboard(ctx context.Context, id string) error
	ListDashboard(ctx context.Context, cursor *typesv1.Cursor, limit int32) ([]*typesv1.Dashboard, *typesv1.Cursor, error)
}

type Mem

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

func NewMemory

func NewMemory() *Mem

func (*Mem) CreateDashboard

func (db *Mem) CreateDashboard(ctx context.Context, req *dashboardv1.CreateDashboardRequest) (*typesv1.Dashboard, error)

func (*Mem) DeleteDashboard

func (db *Mem) DeleteDashboard(ctx context.Context, id string) error

func (*Mem) GetDashboard

func (db *Mem) GetDashboard(ctx context.Context, id string) (*typesv1.Dashboard, error)

func (*Mem) ListDashboard

func (db *Mem) ListDashboard(ctx context.Context, cursor *typesv1.Cursor, limit int32) ([]*typesv1.Dashboard, *typesv1.Cursor, error)

func (*Mem) UpdateDashboard

func (db *Mem) UpdateDashboard(ctx context.Context, id string, mutations []*dashboardv1.UpdateDashboardRequest_Mutation) (*typesv1.Dashboard, error)

Jump to

Keyboard shortcuts

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