Documentation
¶
Overview ¶
Copyright 2015 Yahoo Author: David Leon Gil (dgil@yahoo-inc.com) License: Apache 2
Copyright 2015 Yahoo Author: David Leon Gil (dgil@yahoo-inc.com) License: Apache 2
Copyright 2015 Yahoo Author: David Leon Gil (dgil@yahoo-inc.com) License: Apache 2
Copyright 2015 Yahoo Author: David Leon Gil (dgil@yahoo-inc.com) License: Apache 2
Copyright 2015 Yahoo Author: David Leon Gil (dgil@yahoo-inc.com) License: Apache 2
Copyright 2015 Yahoo Author: David Leon Gil (dgil@yahoo-inc.com) License: Apache 2
Copyright 2015 Yahoo Author: David Leon Gil (dgil@yahoo-inc.com) License: Apache 2
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Post handles requests to /v1/k/{userid}/{deviceid} // The body of the request is the key to associate with // this user's device {deviceid} // It requires that // {userid} // body.userid // are identical. Post = requireAuth(post, true) Get = requireAuth(get, false) )
View Source
var ( Config = &config{ UseTLS: true, SkipAuth: false, Addr: "localhost:25519", DbFn: "data/25519.db", KauthFn: "data/kauth/kauth.pem", TLSPrefix: "data/tls/localhost.", } )
Functions ¶
This section is empty.
Types ¶
type DKey ¶
type DKey struct {
DeviceID string `json:"deviceid"`
Key string `json:"key"`
Timestamp int64 `json:"t"`
UserID string `json:"userid"`
}
A DKey represents the key for a single device.
Click to show internal directories.
Click to hide internal directories.