client

package
v0.0.0-...-241dc9a Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Clients          map[uuid.UUID]*domain.Client
	Error            chan error
	ClientResultChan chan string
	// contains filtered or unexported fields
}

Service struct

func NewClientService

func NewClientService(port int) *Service

NewClientService create tcpService struct

func (*Service) ListClientID

func (s *Service) ListClientID() []string

ListClientID list all client id

func (*Service) Run

func (s *Service) Run()

Run wait for a connection

func (*Service) SendDataToClient

func (s *Service) SendDataToClient(client *domain.Client, boss *domain.Boss, msg string) error

SendDataToClient Send data from server to client

Jump to

Keyboard shortcuts

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