app

package
v0.0.0-...-a002e1c Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const QueueName = "thing-payloads"
View Source
const Version = "0.0.1"

Variables

This section is empty.

Functions

func StartServer

func StartServer(serviceConfig *ServiceConfig) *http.Server

Types

type Application

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

type EnvConfig

type EnvConfig struct {
	Port int
	Env  string
	Dsn  string
}

type SQSReceiveMessageAPI

type SQSReceiveMessageAPI interface {
	GetQueueUrl(ctx context.Context,
		params *sqs.GetQueueUrlInput,
		optFns ...func(*sqs.Options)) (*sqs.GetQueueUrlOutput, error)

	ReceiveMessage(ctx context.Context,
		params *sqs.ReceiveMessageInput,
		optFns ...func(*sqs.Options)) (*sqs.ReceiveMessageOutput, error)
}

type SQSReceiveMessageImpl

type SQSReceiveMessageImpl struct{}

type ServiceConfig

type ServiceConfig struct {
	EnvConfig              EnvConfig
	SqsReceiveMessageInput *sqs.ReceiveMessageInput
	SqsClient              SQSReceiveMessageAPI
	DbClient               *sql.DB
	Logger                 *log.Logger
	Models                 data.Models
}

Jump to

Keyboard shortcuts

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