api

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 14 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 {
	Server *http.Server
	// contains filtered or unexported fields
}

Server defines the HTTP server of the API.

func NewHTTPServer

func NewHTTPServer(eventBus *eventbus.EventBus, rpcBus *rpcbus.RPCBus) (*Server, error)

NewHTTPServer return pointer to new created server object.

func (*Server) InitRouting

func (s *Server) InitRouting() *pat.Router

InitRouting will init pat.Router endpoints.

func (*Server) Start

func (s *Server) Start(srv *Server) error

Start will start and and listen the *http.Server.

Jump to

Keyboard shortcuts

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