restful_tool

package
v0.0.0-...-e0071fa Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2018 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Url string
	ID  string
	Psw string
)

Functions

func AddPrivateMsg

func AddPrivateMsg(to_id string, expired int64, msg []byte) error

func AddSub

func AddSub(max int64, typ int) (string, error)

func AddUser

func AddUser(psw string) (string, error)

func Broadcast

func Broadcast(expired int64, msg []byte) error

func DelSub

func DelSub(id string) error

func DelUser

func DelUser(id string) error

func GroupMsg

func GroupMsg(sub_id string, expired int64, msg []byte) error

func RmUserSub

func RmUserSub(sub_id, user_id string) error

func User2Sub

func User2Sub(sub_id, user_id string) error

Types

type Urls

type Urls []string

func NewUrls

func NewUrls(path string) Urls

func (*Urls) Add

func (u *Urls) Add(s ...string)

func (Urls) ReFresh

func (u Urls) ReFresh()

func (Urls) String

func (u Urls) String() string

Jump to

Keyboard shortcuts

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