repo

package
v0.0.0-...-b50d13f Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImmuLogRepo

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

func NewImmuLogRepo

func NewImmuLogRepo(c *immudb.DB) *ImmuLogRepo

NewImmuLogRepo creates a new instance of ImmuDB repository

func (*ImmuLogRepo) CreateLogLine

func (r *ImmuLogRepo) CreateLogLine(ctx context.Context, line *models.LogLine) error

func (*ImmuLogRepo) CreateLogLines

func (r *ImmuLogRepo) CreateLogLines(ctx context.Context, lines []*models.LogLine) error

func (*ImmuLogRepo) CreateLogLinesTable

func (r *ImmuLogRepo) CreateLogLinesTable(ctx context.Context) error

func (*ImmuLogRepo) GetLogLinesHistory

func (r *ImmuLogRepo) GetLogLinesHistory(ctx context.Context, source string, limit int) ([]*models.LogLine, error)

func (*ImmuLogRepo) GetLogLinesTotal

func (r *ImmuLogRepo) GetLogLinesTotal(ctx context.Context) (uint64, error)

type ImmuUserRepo

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

func NewImmuUserRepo

func NewImmuUserRepo(c *immudb.DB) *ImmuUserRepo

NewImmuUserRepo creates a new instance of ImmuDB repository

func (*ImmuUserRepo) CreateTestUser

func (r *ImmuUserRepo) CreateTestUser(ctx context.Context) error

func (*ImmuUserRepo) CreateUser

func (r *ImmuUserRepo) CreateUser(ctx context.Context, user *models.User) (int64, error)

func (*ImmuUserRepo) CreateUsersTable

func (r *ImmuUserRepo) CreateUsersTable(ctx context.Context) error

func (*ImmuUserRepo) GetUser

func (r *ImmuUserRepo) GetUser(ctx context.Context, login, pass string) (*models.User, error)

Jump to

Keyboard shortcuts

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