api

package
v0.0.0-...-4083dd6 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is HTTP Server for API.

func NewServer

func NewServer(api *v1alfa.VoteAPI) *Server

NewServer creates a new Kublr API server but does not configure it. Call RegisterAndServe to register REST endpoints and start serving.

func (*Server) RegisterAndServe

func (apiServer *Server) RegisterAndServe() error

RegisterAndServe registers REST endpoints and starts serving HTTP server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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