api

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAPI added in v0.2.1

func CreateAPI(conf *config.Config, router *echo.Router)

Types

type APIv1

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

APIv1 implements version 1 of the MailHog API

The specification has been frozen and will eventually be deprecated. Only bug fixes and non-breaking changes will be applied here.

Any changes/additions should be added in APIv2.

type APIv2

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

APIv2 implements version 2 of the MailHog API

It is currently experimental and may change in future releases. Use APIv1 for guaranteed compatibility.

type ErrorResp added in v1.0.2

type ErrorResp struct {
	Error string `json:"error,omitempty"`
}

type ReleaseConfig

type ReleaseConfig config.OutgoingSMTP

ReleaseConfig is an alias to preserve go package API

Jump to

Keyboard shortcuts

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