controller

package
v0.0.0-...-3f804d4 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkCtrl

type LinkCtrl struct {
	*model.Waiters
	// contains filtered or unexported fields
}

func NewLinkCtrl

func NewLinkCtrl(rep LinkRep, stopChan <-chan struct{}) *LinkCtrl

func (*LinkCtrl) Conduct

func (lc *LinkCtrl) Conduct(w http.ResponseWriter, r *http.Request)

type LinkRep

type LinkRep interface {
	Read(id string, r *http.Request, cancelChan <-chan struct{}) (ptpData *model.PtpData, ok bool)
	Write(id string, linkData *model.LinkData, wSecret string, cancelChan <-chan struct{}) (meta *model.Meta, ok bool, auth bool)
}

type McastCtrl

type McastCtrl struct {
	*model.Waiters
	// contains filtered or unexported fields
}

func NewMcastCtrl

func NewMcastCtrl(rep McastRep, stopChan <-chan struct{}) *McastCtrl

func (*McastCtrl) Conduct

func (mc *McastCtrl) Conduct(w http.ResponseWriter, r *http.Request)

type McastRep

type McastRep interface {
	Read(id string, wantedSeqId int, cancelChan <-chan struct{}) (data *model.TeeData, seqId int, ok bool)
	Write(id string, data *model.TeeData, wSecret string) (seqId int, ok bool)
}

type ProxyCtrl

type ProxyCtrl struct {
	*model.Waiters
	// contains filtered or unexported fields
}

func NewProxyCtrl

func NewProxyCtrl(rep *repository.ProxyRep, stopChan <-chan struct{}) *ProxyCtrl

func (*ProxyCtrl) Conduct

func (pc *ProxyCtrl) Conduct(w http.ResponseWriter, r *http.Request)

type SyncCtrl

type SyncCtrl struct {
	*model.Waiters
	// contains filtered or unexported fields
}

func NewSyncCtrl

func NewSyncCtrl(rep SyncRep, stopChan <-chan struct{}) *SyncCtrl

func (*SyncCtrl) Conduct

func (sc *SyncCtrl) Conduct(w http.ResponseWriter, r *http.Request)

type SyncRep

type SyncRep interface {
	Conduct(id string, syncData *model.SyncData, cancelChan <-chan struct{}) (ptpData *model.PtpData, ok bool)
}

Jump to

Keyboard shortcuts

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