actor

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2014 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package actor implements actors, which is an interface encompassing both clients or users. They serve many of the same functions and formerly were implemented using the same object, but are now different types. Thus,Actor is now an interface rather than being a distinct type of object encompassing both.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actor

type Actor interface {
	IsAdmin() bool
	IsValidator() bool
	IsSelf(interface{}) bool
	IsUser() bool
	IsClient() bool
	PublicKey() string
	SetPublicKey(interface{}) error
	GetName() string
	CheckPermEdit(map[string]interface{}, string) util.Gerror
}

func GetReqUser added in v0.4.0

func GetReqUser(name string) (Actor, util.Gerror)

Gets the actor making the request. If use-auth is not on, always returns the admin user.

Jump to

Keyboard shortcuts

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