Documentation ¶ Index ¶ type Service func NewService(storage Storage, logger tracelog.Logger) *Service func (s *Service) Ping(ctx context.Context) error func (s *Service) StoreItem(ctx context.Context, remoteIP string, data []byte) (err error) func (s *Service) StoreList(ctx context.Context, remoteIP string, data []byte) (err error) type Storage 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) } Source Files ¶ View all Source files service.go Click to show internal directories. Click to hide internal directories.