api

package
v0.0.1-alpha1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2018 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InsecureKey = `` /* 1674-byte string literal not displayed */

	InsecureCert = `` /* 1305-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type CentAPIServer

type CentAPIServer struct {
	Address     string
	Port        int
	CentNetwork string
}

CentAPIServer is an implementation of node.Server interface for serving HTTP based Centrifuge API

func NewCentAPIServer

func NewCentAPIServer(
	address string,
	port int,
	centNetwork string,
) *CentAPIServer

func (*CentAPIServer) Name

func (*CentAPIServer) Name() string

func (*CentAPIServer) Start

func (c *CentAPIServer) Start(ctx context.Context, wg *sync.WaitGroup, startupErr chan<- error)

Serve exposes the client APIs for interacting with a centrifuge node

Jump to

Keyboard shortcuts

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