internal

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatCloseMessage

func FormatCloseMessage() []byte

FormatCloseMessage gets the CloseMessage as a byte sequence

func FormatErrorCode

func FormatErrorCode(c codes.Code) int

FormatErrorCode takes a gRPC Code and "encodes" it for use over the websocket bridge

func IsCloseMessage

func IsCloseMessage(msg []byte) bool

IsCloseMessage says whether the byte sequence is a close message

func IsgRPCErrorCode

func IsgRPCErrorCode(i int) bool

IsgRPCErrorCode says if the input websocket code is a gRPC Error code.

func ParseErrorCode

func ParseErrorCode(i int) codes.Code

ParseErrorCode takes a websocket error code and "parses" it into a gRPC Code

Types

This section is empty.

Jump to

Keyboard shortcuts

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