entry

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(storage Storage, logger tracelog.Logger) *Service

func (*Service) Ping

func (s *Service) Ping(ctx context.Context) error

func (*Service) StoreItem

func (s *Service) StoreItem(ctx context.Context, remoteIP string, data []byte) (err error)

func (*Service) StoreList

func (s *Service) StoreList(ctx context.Context, remoteIP string, data []byte) (err error)

type Storage

type Storage interface {
	Ping(ctx context.Context) error
	StoreEntryList(ctx context.Context, list []*domain.Entry) (err error)
}

Jump to

Keyboard shortcuts

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