madux_module

package
v0.0.0-...-014678a Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(ctx *madux_context.T, msg madux_conn.Message) error

Types

type Config

type Config struct {
	Name   string
	Height int32
	Width  int32
}

func (*Config) Handle

func (c *Config) Handle(ctx *madux_context.T) error

func (*Config) HandleClient

func (i *Config) HandleClient(ctx *madux_context.C) error

func (*Config) Marshal

func (p *Config) Marshal(r *madux_conn.Buffer) error

func (*Config) Unmarshal

func (p *Config) Unmarshal(r *madux_conn.Buffer) error

type Handler

type Handler interface {
	madux_conn.Message
	Handle(*madux_context.T) error
	HandleClient(*madux_context.C) error
}

type Input

type Input struct {
	SessionId int32
	Data      []byte
}

func (*Input) Handle

func (i *Input) Handle(ctx *madux_context.T) error

func (*Input) HandleClient

func (i *Input) HandleClient(ctx *madux_context.C) error

func (*Input) Marshal

func (p *Input) Marshal(r *madux_conn.Buffer) error

func (*Input) Unmarshal

func (p *Input) Unmarshal(r *madux_conn.Buffer) error

type Module

type Module struct {
	Session
	Input
	Ping
	Config
}

type Ping

type Ping struct {
}

func (*Ping) Handle

func (s *Ping) Handle(ctx *madux_context.T) error

func (*Ping) HandleClient

func (s *Ping) HandleClient(ctx *madux_context.C) error

func (*Ping) Marshal

func (s *Ping) Marshal(b *madux_conn.Buffer) error

func (*Ping) Unmarshal

func (s *Ping) Unmarshal(b *madux_conn.Buffer) error

type Session

type Session struct {
	Id   int32
	Type SessionType

	Start  int32
	Output []byte
	List   []*SessionItem
}

func (*Session) Handle

func (s *Session) Handle(ctx *madux_context.T) error

func (*Session) HandleClient

func (s *Session) HandleClient(ctx *madux_context.C) error

func (*Session) Marshal

func (s *Session) Marshal(b *madux_conn.Buffer) error

func (*Session) Unmarshal

func (s *Session) Unmarshal(b *madux_conn.Buffer) error

type SessionItem

type SessionItem struct {
	Id       int32
	Name     string
	Attached bool
}

func (*SessionItem) Marshal

func (s *SessionItem) Marshal(b *madux_conn.Buffer) error

func (*SessionItem) Unmarshal

func (s *SessionItem) Unmarshal(b *madux_conn.Buffer) error

type SessionList

type SessionList []*SessionItem

type SessionType

type SessionType int32
const (
	SessionTypePull SessionType = iota
	SessionTypePullResp
	SessionTypeList
	SessionTypeListResp
)

Jump to

Keyboard shortcuts

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