server

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package server provides service engine constructor and related methods to work with server.Server structure

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 server engine instance

func New

func New() (*Server, error)

New factory method to construct new server instance

func (*Server) ContainerInvoke

func (r *Server) ContainerInvoke(function interface{}) error

ContainerInvoke invokes passed function with automatic dependency resolution to DIC

func (*Server) GetListenPort

func (r *Server) GetListenPort() int

GetListenPort returns REST HTTP server listen port

func (*Server) Run

func (r *Server) Run() error

Run starts cron listener, first time currency rates preload and REST HTTP server

Jump to

Keyboard shortcuts

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