user

package
v0.0.0-...-696a884 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2014 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package user contains methods for retrieving, adding and removing users, or API consumers, to Sleepy, via RPC.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetRequest

type GetRequest struct {
	Id      int
	Module  string
	Section string
	Option  string
}

type SetRequest

type SetRequest struct {
	Id   int
	Data map[string]map[string]map[string]interface{}
}

type User

type User struct{}

func (*User) Auth

func (u *User) Auth(authkey string) (interface{}, error)

func (*User) DeleteOption

func (u *User) DeleteOption(p GetRequest) (bool, error)

func (*User) Get

func (u *User) Get(id float64) (interface{}, error)

func (*User) GetOption

func (u *User) GetOption(p GetRequest) (string, error)

func (*User) List

func (u *User) List() (interface{}, error)

func (*User) Remove

func (u *User) Remove(id float64) (bool, error)

func (*User) Save

func (u *User) Save() (interface{}, error)

func (*User) SetOption

func (u *User) SetOption(p SetRequest) (bool, error)

Jump to

Keyboard shortcuts

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