server

package
v0.0.0-...-9f2da65 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_SERVER_DEADLINE = 15 * time.Second
View Source
const MESSAGE_TYPE_BANNED = "BANNED"
View Source
const MESSAGE_TYPE_GET_PRIVATE_KEY = "GET_PRIVATE_KEY"

Common Messages

View Source
const MESSAGE_TYPE_PRIVATE_KEY_ALREADY_EXISTS = "PRIVATE_KEY_ALREADY_EXISTS"
View Source
const MESSAGE_TYPE_PRIVATE_KEY_SAVED = "MESSAGE_TYPE_PRIVATE_KEY_SAVED"

Successes

View Source
const MESSAGE_TYPE_STORE_PRIVATE_KEY = "STORE_PRIVATE_KEY"
View Source
const MESSAGE_TYPE_WRONG_CREDENTIALS = "WRONG_CREDENTIALS"

Errors

Variables

This section is empty.

Functions

func Server

func Server(storageService service.Storage)

Types

type Fail2Ban

type Fail2Ban struct {
	IPAddr      string
	FailCount   int
	BannedUntil time.Time
}

type PrivateKeyExchange

type PrivateKeyExchange struct {
	PasswordHash string
	PrivateKey   string
	Type         string
}

func Client

func Client(password, host, port string, request PrivateKeyExchange) *PrivateKeyExchange

Jump to

Keyboard shortcuts

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