common

package
v0.0.0-...-dc60a2c Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenSymKey

func GenSymKey() (string, error)

func RandomKeyPair

func RandomKeyPair() (string, error)

func Topic

func Topic() []byte

Types

type User

type User struct {
	ID   int64  `json:"id"`
	Name string `json:"name"`
}

func RandomUser

func RandomUser() User

type UserMsg

type UserMsg struct {
	User User   `json:"user"`
	Msg  string `json:"msg"`
}

Jump to

Keyboard shortcuts

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