web

package
v0.0.0-...-7c99e32 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	*Config
}

func CreateBuilder

func CreateBuilder(path string) *Builder

func (*Builder) Build

func (b *Builder) Build(opts ...Option) *Builder

func (*Builder) Run

func (b *Builder) Run() *Server

type Config

type Config struct {
	Host string
	Addr string
}

type Option

type Option func(*Builder)

func WithAddr

func WithAddr(addr string) Option

func WithHost

func WithHost(h string) Option

type Server

type Server struct {
	*gin.Engine
	// contains filtered or unexported fields
}

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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