eventstore

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(cc grpc.ClientConnInterface) *Client

func (*Client) DeleteEvent

func (c *Client) DeleteEvent(ctx context.Context, triggerId string, eventId string) error

func (*Client) DeleteEventsForTrigger

func (c *Client) DeleteEventsForTrigger(ctx context.Context, triggerID string) error

func (*Client) Insert

func (c *Client) Insert(ctx context.Context, rec capabilities.PendingEvent) error

func (*Client) List

func (*Client) UpdateDelivery

func (c *Client) UpdateDelivery(ctx context.Context, triggerId string, eventId string, lastSentAt time.Time, attempts int) error

type Server

type Server struct {
	pb.UnimplementedEventStoreServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(impl capabilities.EventStore) *Server

func (*Server) DeleteEvent

func (s *Server) DeleteEvent(ctx context.Context, req *pb.DeleteEventRequest) (*emptypb.Empty, error)

func (*Server) DeleteEventsForTrigger

func (s *Server) DeleteEventsForTrigger(ctx context.Context, req *pb.DeleteEventsForTriggerRequest) (*emptypb.Empty, error)

func (*Server) Insert

func (s *Server) Insert(ctx context.Context, req *pb.InsertEventRequest) (*emptypb.Empty, error)

func (*Server) List

func (*Server) UpdateDelivery

func (s *Server) UpdateDelivery(ctx context.Context, req *pb.UpdateDeliveryRequest) (*emptypb.Empty, error)

Jump to

Keyboard shortcuts

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