ngtd

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) starter.Starter

Types

type Option

type Option func(*server)

func WithDimentaion

func WithDimentaion(dim int) Option

func WithIndexDir

func WithIndexDir(path string) Option

func WithPort

func WithPort(port int) Option

func WithServerType

func WithServerType(t ServerType) Option

type ServerType

type ServerType = ngtd.ServerType
const (
	HTTP ServerType = 1
	GRPC ServerType = 2
)

Jump to

Keyboard shortcuts

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