Documentation ¶
Index ¶
- type ImmuLogRepo
- func (r *ImmuLogRepo) CreateLogLine(ctx context.Context, line *models.LogLine) error
- func (r *ImmuLogRepo) CreateLogLines(ctx context.Context, lines []*models.LogLine) error
- func (r *ImmuLogRepo) CreateLogLinesTable(ctx context.Context) error
- func (r *ImmuLogRepo) GetLogLinesHistory(ctx context.Context, source string, limit int) ([]*models.LogLine, error)
- func (r *ImmuLogRepo) GetLogLinesTotal(ctx context.Context) (uint64, error)
- type ImmuUserRepo
- func (r *ImmuUserRepo) CreateTestUser(ctx context.Context) error
- func (r *ImmuUserRepo) CreateUser(ctx context.Context, user *models.User) (int64, error)
- func (r *ImmuUserRepo) CreateUsersTable(ctx context.Context) error
- func (r *ImmuUserRepo) GetUser(ctx context.Context, login, pass string) (*models.User, error)
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 (*ImmuLogRepo) CreateLogLines ¶
func (*ImmuLogRepo) CreateLogLinesTable ¶
func (r *ImmuLogRepo) CreateLogLinesTable(ctx context.Context) error
func (*ImmuLogRepo) GetLogLinesHistory ¶
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 (*ImmuUserRepo) CreateUsersTable ¶
func (r *ImmuUserRepo) CreateUsersTable(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.