publish

package
v0.1.2-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec interface {
	Convert(record *EventLog) (proto.Message, error)
	Aggregate() string
}

type EventLog

type EventLog struct {
	ID        string
	Sequence  int64
	Type      string
	Timestamp int64
	Aggregate string
	Data      []byte
}

type MissingCodecError

type MissingCodecError struct {
	Aggregate string
}

func (*MissingCodecError) Error

func (m *MissingCodecError) Error() string

type Service

type Service struct {
	pb.UnimplementedAppCallbackServer
	// contains filtered or unexported fields
}

func NewService

func NewService(client daprd.Client) *Service

func (*Service) ListInputBindings

func (s *Service) ListInputBindings(_ context.Context, _ *emptypb.Empty) (*pb.ListInputBindingsResponse, error)

func (*Service) ListTopicSubscriptions

func (s *Service) ListTopicSubscriptions(context.Context, *emptypb.Empty) (*pb.ListTopicSubscriptionsResponse, error)

func (*Service) OnBindingEvent

func (s *Service) OnBindingEvent(ctx context.Context, request *pb.BindingEventRequest) (*pb.BindingEventResponse, error)

func (*Service) RegisterCodec

func (s *Service) RegisterCodec(c Codec)

Jump to

Keyboard shortcuts

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