api

package
v0.0.0-...-78c831c Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

API contains the MistralMail REST API.

func New

func New(config Config, backend *backend.Backend) (*API, error)

New creates a new API.

func (*API) Serve

func (api *API) Serve() error

Serve the API.

type Config

type Config struct {
	HTTPAddress string
	Secret      []byte
}

type Metrics

type Metrics struct {
	SMTPDelivered float64
	SMTPReceived  float64
	Users         int64
	Messages      int64
}

Jump to

Keyboard shortcuts

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