service

package
v0.0.0-...-3831139 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GRPCMiddleware

func GRPCMiddleware() []grpc.UnaryServerInterceptor

func NewDeadmessagePSM

func NewDeadmessagePSM() (*dante_pb.DeadmessagePSM, error)

Types

type DeadLetterWorker

type DeadLetterWorker struct {
	messaging_tpb.UnimplementedDeadMessageTopicServer
	// contains filtered or unexported fields
}

func NewDeadLetterWorker

func NewDeadLetterWorker(conn sqrlx.Connection, stateMachine *dante_pb.DeadmessagePSM, slack string) (*DeadLetterWorker, error)

func (*DeadLetterWorker) Dead

type DeadletterService

type DeadletterService struct {
	dante_spb.UnimplementedDeadMessageQueryServiceServer
	dante_spb.UnimplementedDeadMessageCommandServiceServer
	// contains filtered or unexported fields
}

func NewDeadletterServiceService

func NewDeadletterServiceService(conn sqrlx.Connection, statemachine *dante_pb.DeadmessagePSM, sqsClient SqsSender) (*DeadletterService, error)

func (*DeadletterService) GetDeadMessage

func (*DeadletterService) ListDeadMessages

type ProtoJSON

type ProtoJSON interface {
	Marshal(v proto.Message) ([]byte, error)
	Unmarshal(data []byte, v proto.Message) error
}

type SlackMessage

type SlackMessage struct {
	Text string `json:"text"`
}

type SqsSender

type SqsSender interface {
	SendMessage(ctx context.Context, params *sqs.SendMessageInput, optFns ...func(*sqs.Options)) (*sqs.SendMessageOutput, error)
}

Jump to

Keyboard shortcuts

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