accountinvitations

package
v0.0.0-...-98cd694 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Unlicense Imports: 25 Imported by: 0

Documentation

Overview

Package accountinvitations provides a series of HTTP handlers for managing webhooks in a compatible database.

Index

Constants

View Source
const (
	// AccountInvitationIDURIParamKey is a standard string that we'll use to refer to account invitation IDs with.
	AccountInvitationIDURIParamKey = "accountInvitationID"
)

Variables

View Source
var (
	// Providers are our collection of what we provide to other services.
	Providers = wire.NewSet(
		ProvideAccountInvitationsService,
	)
)

Functions

func ProvideAccountInvitationsService

func ProvideAccountInvitationsService(
	logger logging.Logger,
	cfg *Config,
	userDataManager types.UserDataManager,
	accountInvitationDataManager types.AccountInvitationDataManager,
	encoder encoding.ServerEncoderDecoder,
	routeParamManager routing.RouteParamManager,
	publisherProvider messagequeue.PublisherProvider,
	tracerProvider tracing.TracerProvider,
	emailer email.Emailer,
	secretGenerator random.Generator,
) (types.AccountInvitationDataService, error)

ProvideAccountInvitationsService builds a new AccountInvitationDataService.

Types

type Config

type Config struct {
	DataChangesTopicName string `json:"dataChangesTopicName,omitempty" toml:"data_changes_topic_name,omitempty"`
	Debug                bool   `json:"debug"                          toml:"debug,omitempty"`
	// contains filtered or unexported fields
}

Config represents our database configuration.

func (Config) ValidateWithContext

func (cfg Config) ValidateWithContext(ctx context.Context) error

ValidateWithContext validates a Config struct.

Jump to

Keyboard shortcuts

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