link_cqrs

package
v0.0.0-...-d7e3108 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 11 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCreateLink = fmt.Errorf("error create a new link")
	ErrNotFound   = fmt.Errorf("error not found link")
)

Functions

This section is empty.

Types

type Service

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

func New

func New(log 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 *v1.FilterLink) (*domain.LinksView, error)

func (*Service) Notify

func (s *Service) Notify(ctx context.Context, event uint32, payload any) notify.Response[any]

Jump to

Keyboard shortcuts

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