commonTypes

package
v0.0.0-...-63b2ac5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tobytes

func Tobytes(d interface{}) ([]byte, error)

Types

type HoleRequest

type HoleRequest struct {
	UserId int32
}

func (HoleRequest) MustMarshalBinary

func (hr HoleRequest) MustMarshalBinary() (data []byte)

type HoleResponse

type HoleResponse struct {
	Status HoleStatus
}

func ConnectOk

func ConnectOk() HoleResponse

func (HoleResponse) MarshalBinary

func (hr HoleResponse) MarshalBinary() (data []byte, err error)

func (HoleResponse) MustMarshalBinary

func (hr HoleResponse) MustMarshalBinary() (data []byte)

type HoleStatus

type HoleStatus byte
const (
	HS_Unknow HoleStatus = iota
	HS_invalid
	HS_Connected
)

Jump to

Keyboard shortcuts

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