admin

package
v0.0.0-...-d27b06f Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2015 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOGIN_COOKIE = "sessionid"
	TPID_COOKIE  = "tpid"
	LOGIN_PATH   = "/accounts/login/"
)

Variables

This section is empty.

Functions

func GenUUID

func GenUUID() string

func IsAuthenticated

func IsAuthenticated(r *http.Request) bool

func SessionAuth

func SessionAuth(c *web.C, h http.Handler) http.Handler

func Start

func Start(conn *CGRConnector, user, pass string)

Types

type Args

type Args struct {
	ServiceMethod string
	Params        interface{}
}

type CGRConnector

type CGRConnector struct {
	// contains filtered or unexported fields
}

func NewCGRConnector

func NewCGRConnector(encoding, server, redisAdr string) *CGRConnector

func (*CGRConnector) Call

func (c *CGRConnector) Call(args Args, reply *interface{}) error

Jump to

Keyboard shortcuts

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