store

package
v0.4.3-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(conf *config.DatabaseConfig) (err error)

Types

type AccountStore

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

func NewAccountStore

func NewAccountStore(conf *config.PostarConfig) *AccountStore

func (*AccountStore) GetAccount

func (as *AccountStore) GetAccount(ctx context.Context, spaceID int32, accountID int32) (*model.Account, error)

type SpaceStore

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

func NewSpaceStore

func NewSpaceStore(conf *config.PostarConfig) *SpaceStore

func (*SpaceStore) GetSpace

func (ss *SpaceStore) GetSpace(ctx context.Context, spaceID int32) (*model.Space, error)

type TemplateStore

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

func NewTemplateStore

func NewTemplateStore(conf *config.PostarConfig) *TemplateStore

func (*TemplateStore) GetTemplate

func (ts *TemplateStore) GetTemplate(ctx context.Context, spaceID int32, templateID int64) (*model.Template, error)

Jump to

Keyboard shortcuts

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