components

package
v0.0.0-...-be240b2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(userId int64) (string, error)

func RequireTokenAuthentication

func RequireTokenAuthentication(tokenStr string) (bool, string)

func Send

func Send(topic string, sendMess *SendMess) bool

Types

type SendMess

type SendMess struct {
	OrderType int   `json:"order_type"`
	DataId    int64 `json:"data_id"`
}

Jump to

Keyboard shortcuts

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