server

package
v0.0.0-...-6781889 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 4 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 {
	G       *gin.Engine
	Options *ServerOptions
}

func NewServer

func NewServer(g *gin.Engine, options *ServerOptions) *Server

func (Server) Run

func (s Server) Run() error

type ServerBuiler

type ServerBuiler struct {
	App *app.AppBuilder

	Options *ServerOptions
	// contains filtered or unexported fields
}

func NewServerBuilder

func NewServerBuilder(builder *app.AppBuilder) *ServerBuiler

func (*ServerBuiler) Add

func (b *ServerBuiler) Add(action func(*ServerBuiler) error) *ServerBuiler

func (*ServerBuiler) Build

func (b *ServerBuiler) Build() (*Server, error)

func (*ServerBuiler) Configure

func (b *ServerBuiler) Configure(action ServerConfigureFunc) *ServerBuiler

type ServerConfigureFunc

type ServerConfigureFunc func(s *Server) error

type ServerOptions

type ServerOptions struct {
	Port    int
	RootUrl string
}

Jump to

Keyboard shortcuts

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