server

package
v0.0.0-...-726ba00 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultNATSServerPort  = 4222
	DefaultNATSClusterPort = 6222
	DefaultNATSWebPort     = 8222
	DefaultNATSBindAddress = "0.0.0.0"
	DefaultNATSClusterName = "enats"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Routes []string `json:"routes" yaml:"routes"`
}

type Server

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

Server a server object

func NewServer

func NewServer(config *Config) (*Server, error)

NewServer creates a new server

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Start starts the server

Jump to

Keyboard shortcuts

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