link_cqrs

package
v0.0.0-...-36d8597 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 12 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 {
	// Observer interface for subscribe on system event
	notify.Subscriber // Observer interface for subscribe on system event
	// contains filtered or unexported fields
}

func New

func New(logger logger.Logger, cqsStore *cqs.Store, queryStore *query.Store) (*Service, error)

func (*Service) EventHandlers

func (s *Service) EventHandlers()

func (*Service) Get

func (s *Service) Get(ctx context.Context, hash string) (*domain.LinkView, error)

func (*Service) List

func (s *Service) List(ctx context.Context, filter *query.Filter) (*domain.LinksView, error)

func (*Service) Notify

func (s *Service) Notify(ctx context.Context, event uint32, payload interface{}) notify.Response

Jump to

Keyboard shortcuts

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