server

package
v0.0.0-...-3a04d9f Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package server serves HTTP Server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomValidator

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

func NewCustomValidator

func NewCustomValidator() *CustomValidator

func (*CustomValidator) Validate

func (v *CustomValidator) Validate(i interface{}) error

type Options

type Options struct {
	Logger           logrus.FieldLogger
	MiddlewareSetter func(e *echo.Echo)
	HandlersSetter   func(e *echo.Echo)
	Port             string
	Host             string
}

type Server

type Server struct {
	E *echo.Echo
	// contains filtered or unexported fields
}

func New

func New(opt *Options) *Server

func (*Server) IsRunning

func (s *Server) IsRunning() bool

func (*Server) Run

func (s *Server) Run()

Jump to

Keyboard shortcuts

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