gql_ev

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: BSD-3-Clause Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

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

func (*Event) Bytes

func (e *Event) Bytes() (string, error)

func (*Event) Created

func (e *Event) Created() time.Time

func (*Event) EventID

func (e *Event) EventID() string

func (*Event) ID

func (e *Event) ID() string

func (*Event) IsEdge

func (e *Event) IsEdge()

func (*Event) Linked

func (e *Event) Linked(ctx context.Context) (*Event, error)

func (*Event) Meta

func (e *Event) Meta() *event.Meta

func (*Event) Position

func (e *Event) Position() uint64

func (*Event) StreamID

func (e *Event) StreamID() string

func (*Event) Type

func (e *Event) Type() string

func (*Event) Values

func (e *Event) Values() map[string]interface{}

type EventResolver

type EventResolver interface {
	Events(ctx context.Context, streamID string, paging *gql.PageInput) (*gql.Connection, error)
	EventAdded(ctx context.Context, streamID string, after int64) (<-chan *Event, error)
	TruncateStream(ctx context.Context, streamID string, index int64) (bool, error)
}

type EventStore

type EventStore struct {
	*ev.EventStore
}

func (*EventStore) EventAdded

func (e *EventStore) EventAdded(ctx context.Context, streamID string, after int64) (<-chan *Event, error)

func (*EventStore) Events

func (es *EventStore) Events(ctx context.Context, streamID string, paging *gql.PageInput) (*gql.Connection, error)

func (*EventStore) GetMiddleware

func (e *EventStore) GetMiddleware() func(http.Handler) http.Handler

func (*EventStore) IsResolver

func (es *EventStore) IsResolver()

func (*EventStore) TruncateStream

func (es *EventStore) TruncateStream(ctx context.Context, streamID string, index int64) (bool, error)

Jump to

Keyboard shortcuts

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