Documentation ¶
Index ¶
- Constants
- func CreateKeyPair() *[2]bytes.Buffer
- func EnsurePrivateKeyInstalled() error
- func GetAccessToken() string
- func GetOrCreateDataPath() string
- func Initialize(initialAccessToken string, proxyURL string, initialAllowedOrigins string, ...)
- func SetAccessToken(newAccessToken string)
- type Request
- type Response
Constants ¶
View Source
const ErrorBodyInvalidRequest = "{\"success\": false, \"data\":{\"message\":\"(Proxy Error) Invalid request.\"}}"
View Source
const ErrorBodyProxyRequestFailed = "{\"success\": false, \"data\":{\"message\":\"(Proxy Error) Request failed.\"}}"
Variables ¶
This section is empty.
Functions ¶
func CreateKeyPair ¶
func EnsurePrivateKeyInstalled ¶
func EnsurePrivateKeyInstalled() error
func GetAccessToken ¶
func GetAccessToken() string
func GetOrCreateDataPath ¶
func GetOrCreateDataPath() string
func Initialize ¶
func SetAccessToken ¶
func SetAccessToken(newAccessToken string)
Types ¶
Click to show internal directories.
Click to hide internal directories.