fairudp

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinActiveNum    = 3
	ActiveNodeRm    = 3 //	active 노드	manage 시간(minute)
	CheckUsingOTPRN = 3 // OTPRN을 발행하고 사용중인지 확인
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FairUdp

type FairUdp struct {
	LAddrUDP *net.UDPAddr
	// contains filtered or unexported fields
}

func New

func New(db *db.FairNodeDB, fm backend.Manager, tcp tcpInterface) (*FairUdp, error)

func (*FairUdp) JobActiveNode

func (fu *FairUdp) JobActiveNode(exit chan struct{})

UDP로 받은 ActiveNode의 마지막 수신 시간을 확인하여 3분이 지나갔을시 DB에서 삭제

func (*FairUdp) Start

func (fu *FairUdp) Start() error

func (*FairUdp) Stop

func (fu *FairUdp) Stop() error

type SendOtprn

type SendOtprn struct {
	LeagueChange bool
	TsOtprn      fairtypes.TransferOtprn
}

Jump to

Keyboard shortcuts

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