activity

package
v0.6.16 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidUUID = errors.New("invalid syntax of uuid")
	ErrInvalidData = errors.New("invalid log data")
)

Functions

This section is empty.

Types

type Repository

type Repository interface {
	Insert(ctx context.Context, log *audit.Log) error
}

type Service

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

func NewService

func NewService(repository Repository) *Service

func (Service) Log

func (s Service) Log(ctx context.Context, action string, actor string, data any) error

Jump to

Keyboard shortcuts

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