logservice

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 Repo

type Repo interface {
	CreateLogLine(ctx context.Context, line *models.LogLine) error
	CreateLogLines(ctx context.Context, lines []*models.LogLine) error
	GetLogLinesTotal(ctx context.Context) (uint64, error)
	GetLogLinesHistory(ctx context.Context, source string, limit int) ([]*models.LogLine, error)
}

type Service

type Service struct {
	v1.UnimplementedLogServiceServer
	// contains filtered or unexported fields
}

func New

func New(r Repo) *Service

func (*Service) CreateLogLine

func (*Service) CreateLogLines

func (*Service) GetLogLineTotal

func (s *Service) GetLogLineTotal(ctx context.Context, r *emptypb.Empty) (*v1.GetLogLineTotalResponse, error)

func (*Service) GetLogLinesHistory

Jump to

Keyboard shortcuts

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