json

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCodec

func NewCodec() rpc.Codec

NewCodec returns a new json codec that will convert the first character of the method to uppercase

Types

type Connection

type Connection struct {
	// contains filtered or unexported fields
}

Connection is a representation of the websocket connection.

type Float32 added in v0.6.1

type Float32 float32

Float32 ...

func (Float32) MarshalJSON added in v0.6.1

func (f Float32) MarshalJSON() ([]byte, error)

MarshalJSON ...

func (*Float32) UnmarshalJSON added in v0.6.1

func (f *Float32) UnmarshalJSON(b []byte) error

UnmarshalJSON ...

type PubSubServer

type PubSubServer struct {
	// contains filtered or unexported fields
}

PubSubServer maintains the set of active clients and sends messages to the clients.

func NewPubSubServer

func NewPubSubServer(ctx *snow.Context) *PubSubServer

NewPubSubServer ...

func (*PubSubServer) Publish

func (s *PubSubServer) Publish(channel string, msg interface{})

Publish ...

func (*PubSubServer) Register

func (s *PubSubServer) Register(channel string) error

Register ...

func (*PubSubServer) ServeHTTP

func (s *PubSubServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Uint16

type Uint16 uint16

Uint16 ...

func (Uint16) MarshalJSON

func (u Uint16) MarshalJSON() ([]byte, error)

MarshalJSON ...

func (*Uint16) UnmarshalJSON

func (u *Uint16) UnmarshalJSON(b []byte) error

UnmarshalJSON ...

type Uint32

type Uint32 uint32

Uint32 ...

func (Uint32) MarshalJSON

func (u Uint32) MarshalJSON() ([]byte, error)

MarshalJSON ...

func (*Uint32) UnmarshalJSON

func (u *Uint32) UnmarshalJSON(b []byte) error

UnmarshalJSON ...

type Uint64

type Uint64 uint64

Uint64 ...

func (Uint64) MarshalJSON

func (u Uint64) MarshalJSON() ([]byte, error)

MarshalJSON ...

func (*Uint64) UnmarshalJSON

func (u *Uint64) UnmarshalJSON(b []byte) error

UnmarshalJSON ...

type Uint8

type Uint8 uint8

Uint8 ...

func (Uint8) MarshalJSON

func (u Uint8) MarshalJSON() ([]byte, error)

MarshalJSON ...

func (*Uint8) UnmarshalJSON

func (u *Uint8) UnmarshalJSON(b []byte) error

UnmarshalJSON ...

Jump to

Keyboard shortcuts

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