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: 7 Imported by: 0

Documentation

Overview

Package user contains functionality for querying, adding and removing users, or consumers of services provided by modules via RPC.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Remove

func Remove(id int) (bool, error)

func Setup

func Setup(datadir, filename string) error

Types

type User

type User struct {
	// Contains private or unexported fields.
	Id      int
	Authkey string
}

func Auth

func Auth(authkey string) (*User, error)

func Get

func Get(id int) (*User, error)

func List

func List() ([]User, error)

func Save

func Save() (*User, error)

func (*User) Conf

func (u *User) Conf(module string) (*config.Config, error)

func (*User) DeleteOption

func (u *User) DeleteOption(module, section, option string) (bool, error)

func (*User) SetOption

func (u *User) SetOption(module, section, option string, value interface{}) (bool, error)

Jump to

Keyboard shortcuts

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