gotimed

package module
v0.0.0-...-1eca76b Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: GPL-3.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const (
	TIMED_TCP_LISTENING_HOST = "127.0.0.1"
	TIMED_TCP_LISTENING_PORT = 37
)

Variables

View Source
var RFC_UNIX_DIFF = time.Unix(0, 0).Sub(
	time.Date(1900, 1, 1, 0, 0, 0, 0, time.UTC),
)

Functions

func Rfc868ToUnix

func Rfc868ToUnix(rfctime int64) int64

func UnixToRfc868

func UnixToRfc868(rfctime int64) int64

Types

type Server

type Server struct {
	OnStarted     func()
	OnStopped     func()
	OnAcceptError func(error)
	OnHandleError func(error)
	// contains filtered or unexported fields
}

func NewServer

func NewServer(port int) (*Server, error)

func (*Server) IsWorking

func (self *Server) IsWorking() bool

func (*Server) Run

func (self *Server) Run() error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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