gtservice

package
v0.0.0-...-6567141 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IService

type IService interface {
	Start() error
	Stop() error
	Name() string
	Net() string
	Addr() string
	StartTime() int64
}

type Service

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

func NewService

func NewService(name string, net string, addr string, connhandler func(gtnet.IConn)) *Service

func (*Service) Addr

func (this *Service) Addr() string

func (*Service) Name

func (this *Service) Name() string

func (*Service) Net

func (this *Service) Net() string

func (*Service) Start

func (this *Service) Start() error

func (*Service) StartTime

func (this *Service) StartTime() int64

func (*Service) Stop

func (this *Service) Stop() error

Jump to

Keyboard shortcuts

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