server

package
v0.0.0-...-d270eb1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Port int = 9000

Variables

This section is empty.

Functions

func Execute

func Execute(p int) error

func Post

func Post() *cli.Command

func RunServer

func RunServer(p int) *cli.Command

server Command definition

func Setup

func Setup() *cli.Command

Types

type Protocol

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

func (*Protocol) SetAddress

func (p *Protocol) SetAddress(pt int)

Sets listener address to port pt

func (*Protocol) SetClient

func (p *Protocol) SetClient()

func (*Protocol) SetHeartRate

func (p *Protocol) SetHeartRate(hr int)

Set protocol heart rate in seconds

func (*Protocol) SetListener

func (p *Protocol) SetListener()

func (*Protocol) SetLogger

func (p *Protocol) SetLogger(opts *log.Options)

Sets prefixed logger to protocol process

Jump to

Keyboard shortcuts

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