service

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package service defines application resources and configuration.

Index

Constants

View Source
const Name = "form2mail"

Name is the name of this application or service.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	brick.BaseConfig

	SMTP      email.SMTPConfig
	Recaptcha recaptcha.Config
	StaticDir string `split_words:"true"`
}

Config defines application configuration.

type EmailSenderProvider

type EmailSenderProvider interface {
	EmailSender() email.Sender
}

type Locator

Locator defines application resources.

func (*Locator) ServiceConfig

func (l *Locator) ServiceConfig() Config

ServiceConfig returns service configuration.

type RecaptchaCheckerProvider

type RecaptchaCheckerProvider interface {
	RecaptchaChecker() recaptcha.Checker
}

Jump to

Keyboard shortcuts

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