wsptc

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

web socket protocol

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorProtoMarshal   = errors.New("proto marshal error")
	ErrorInput          = errors.New("input error")
	ErrorProtoUnmarshal = errors.New("proto ummarshal error")
)

Functions

func Decode

func Decode(message []byte) (uint32, []byte, error)

func Encode

func Encode(message proto.Message) ([]byte, error)

func Equal

func Equal(s1 []byte, s2 []byte) bool

func Hash

func Hash(name string) uint32

func MessageId

func MessageId(message any) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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