server

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package server encapsulates http server entry points. It's the package for agency services.

Index

Constants

View Source
const TestServiceName2 = agency.ProtocolPath

Variables

This section is empty.

Functions

func BuildHostAddr

func BuildHostAddr(scheme string, hostPort uint)

func ResetEnv

func ResetEnv(w *ssi.Wallet, exportPath string)

func StartHTTPServer

func StartHTTPServer(serviceName string, serverPort uint) error

StartHTTPServer starts the http server. The function blocks when it success. It builds the host address and writes it to utils.Settings. It takes a CA API path (serviceName), and a host port, a server port as an argument. The server port is the port to listen, and the host port is the actual port on the Internet, the port the world sees, and is assigned to endpoints.

func StartTestHTTPServer

func StartTestHTTPServer()

func StartTestHTTPServer2

func StartTestHTTPServer2() *httptest.Server

Types

This section is empty.

Jump to

Keyboard shortcuts

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