Documentation ¶
Index ¶
- type DB
- type Ident
- func CreateIdentity(signature string, hostname string, display_name string) Ident
- func GetOrCreateIdentity(filename string) (Ident, error)
- func LoadIdentity(filename string) (Ident, error)
- func NewIdentFromReader(reader io.Reader) (Ident, error)
- func NewIdentFromString(s string) (Ident, error)
- func SaveIdentity(identity Ident, filename string) (Ident, error)
- func SaveIdentityFile(identity Ident, file *os.File) (Ident, error)
- type Server
- func (s *Server) DeleteIdent(db *redis.Client, signature string) (Ident, error)
- func (s *Server) DeleteNodeIdentity(response http.ResponseWriter, request *http.Request, db *redis.Client, ...) (int, string)
- func (s *Server) GetIdent(db *redis.Client, signature string) (Ident, error)
- func (s *Server) GetIdentIndex(db *redis.Client, start int, stop int) ([]Ident, error)
- func (s *Server) GetNodeIdentity(response http.ResponseWriter, request *http.Request, db *redis.Client, ...) (int, string)
- func (s *Server) GetNodeIdentityIndex(response http.ResponseWriter, request *http.Request, db *redis.Client, ...) (int, string)
- func (s *Server) GetOwnIdentity(response http.ResponseWriter, request *http.Request) (int, string)
- func (s *Server) Handler() martini.Handler
- func (s *Server) New() *martini.ClassicMartini
- func (s *Server) PutIdent(db *redis.Client, identity Ident) (Ident, error)
- func (s *Server) PutNodeIdentity(response http.ResponseWriter, request *http.Request, db *redis.Client, ...) (int, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ident ¶
type Ident struct { Signature string `json:"signature"` Hostname string `json:"hostname"` DisplayName string `json:"display_name"` }
func CreateIdentity ¶
func GetOrCreateIdentity ¶
func LoadIdentity ¶
func NewIdentFromString ¶
type Server ¶
func (*Server) DeleteIdent ¶
func (*Server) DeleteNodeIdentity ¶
func (*Server) GetIdentIndex ¶
func (*Server) GetNodeIdentity ¶
func (*Server) GetNodeIdentityIndex ¶
func (*Server) GetOwnIdentity ¶
func (*Server) New ¶
func (s *Server) New() *martini.ClassicMartini
Click to show internal directories.
Click to hide internal directories.