restapi

package
v0.0.0-...-718b68f Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ListenAddress            string `toml:"listen_address"`
	EndpointEventStoreURL    string `toml:"endpoint_event_store_url"`
	EndpointAuthenticatorURL string `toml:"endpoint_authenticator_url"`
}

Config of REST API service.

type RESTAPI

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

RESTAPI defines REST API gateway service.

func NewRESTAPI

func NewRESTAPI(log *zap.Logger, config *Config) *RESTAPI

NewRESTAPI returns new REST API gateway service.

func (*RESTAPI) Listen

func (restAPI *RESTAPI) Listen()

Listen to REST API calls.

Jump to

Keyboard shortcuts

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