localstate

package
v0.8.9 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 14 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 {
	CreateProject(context.Context, *projectv1.CreateProjectRequest) (*projectv1.CreateProjectResponse, error)
	GetProject(context.Context, *projectv1.GetProjectRequest) (*projectv1.GetProjectResponse, error)
	UpdateProject(context.Context, *projectv1.UpdateProjectRequest) (*projectv1.UpdateProjectResponse, error)
	DeleteProject(context.Context, *projectv1.DeleteProjectRequest) (*projectv1.DeleteProjectResponse, error)
	ListProject(context.Context, *projectv1.ListProjectRequest) (*projectv1.ListProjectResponse, error)

	CreateDashboard(ctx context.Context, req *dashboardv1.CreateDashboardRequest) (*dashboardv1.CreateDashboardResponse, error)
	GetDashboard(ctx context.Context, req *dashboardv1.GetDashboardRequest) (*dashboardv1.GetDashboardResponse, error)
	UpdateDashboard(ctx context.Context, req *dashboardv1.UpdateDashboardRequest) (*dashboardv1.UpdateDashboardResponse, error)
	DeleteDashboard(ctx context.Context, req *dashboardv1.DeleteDashboardRequest) (*dashboardv1.DeleteDashboardResponse, error)
	ListDashboard(ctx context.Context, req *dashboardv1.ListDashboardRequest) (*dashboardv1.ListDashboardResponse, error)

	CreateAlertGroup(ctx context.Context, req *alertv1.CreateAlertGroupRequest) (*alertv1.CreateAlertGroupResponse, error)
	GetAlertGroup(ctx context.Context, req *alertv1.GetAlertGroupRequest) (*alertv1.GetAlertGroupResponse, error)
	UpdateAlertGroup(ctx context.Context, req *alertv1.UpdateAlertGroupRequest) (*alertv1.UpdateAlertGroupResponse, error)
	DeleteAlertGroup(ctx context.Context, req *alertv1.DeleteAlertGroupRequest) (*alertv1.DeleteAlertGroupResponse, error)
	ListAlertGroup(ctx context.Context, req *alertv1.ListAlertGroupRequest) (*alertv1.ListAlertGroupResponse, error)

	CreateAlertRule(ctx context.Context, req *alertv1.CreateAlertRuleRequest) (*alertv1.CreateAlertRuleResponse, error)
	GetAlertRule(ctx context.Context, req *alertv1.GetAlertRuleRequest) (*alertv1.GetAlertRuleResponse, error)
	UpdateAlertRule(ctx context.Context, req *alertv1.UpdateAlertRuleRequest) (*alertv1.UpdateAlertRuleResponse, error)
	DeleteAlertRule(ctx context.Context, req *alertv1.DeleteAlertRuleRequest) (*alertv1.DeleteAlertRuleResponse, error)
	ListAlertRule(ctx context.Context, req *alertv1.ListAlertRuleRequest) (*alertv1.ListAlertRuleResponse, error)
}

type Mem

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

func NewMemory

func NewMemory() *Mem

func (*Mem) AlertStateStorage added in v0.8.8

func (db *Mem) AlertStateStorage() localstorage.Alertable

func (*Mem) CreateAlertGroup added in v0.8.8

func (*Mem) CreateAlertRule added in v0.8.7

func (*Mem) CreateProject added in v0.8.8

func (*Mem) DeleteAlertGroup added in v0.8.8

func (*Mem) DeleteAlertRule added in v0.8.7

func (*Mem) DeleteProject added in v0.8.8

func (*Mem) GetAlertGroup added in v0.8.8

func (*Mem) GetAlertRule added in v0.8.7

func (*Mem) GetProject added in v0.8.8

func (*Mem) ListAlertGroup added in v0.8.8

func (*Mem) ListAlertRule added in v0.8.7

func (*Mem) ListProject added in v0.8.8

func (*Mem) UpdateAlertGroup added in v0.8.8

func (*Mem) UpdateAlertRule added in v0.8.7

func (*Mem) UpdateProject added in v0.8.8

Jump to

Keyboard shortcuts

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