Documentation ¶
Index ¶
- Constants
- Variables
- func GetAccessToken() string
- func GetAuthClient() (api.AuthClient, error)
- func GetContextWithAllAuths(path string) context.Context
- func GetContextWithAuth() context.Context
- func GetPreviewClient() (api.PreviewClient, error)
- func GetSharingClient() (api.ShareClient, error)
- func GetStorageClient() (api.StorageClient, error)
- func LoadPublicLinkAccessToken(token string) (string, error)
- func SavePublicLinkAccessToken(token, accessToken string)
- func SetAccessToken(token string)
- func SetConfig(cfg *Config)
- type Config
Constants ¶
View Source
const ( DefaultServerHost = "localhost" DefaultServerPort = 1094 )
Variables ¶
View Source
var AccessTokenFile string
View Source
var ConfigDir string
View Source
var ConfigFile string
View Source
var LogFile string
Functions ¶
func GetAccessToken ¶
func GetAccessToken() string
func GetAuthClient ¶
func GetAuthClient() (api.AuthClient, error)
func GetContextWithAllAuths ¶ added in v0.0.2
func GetContextWithAuth ¶
func GetPreviewClient ¶
func GetPreviewClient() (api.PreviewClient, error)
func GetSharingClient ¶
func GetSharingClient() (api.ShareClient, error)
func GetStorageClient ¶
func GetStorageClient() (api.StorageClient, error)
func LoadPublicLinkAccessToken ¶ added in v0.0.2
func SavePublicLinkAccessToken ¶ added in v0.0.2
func SavePublicLinkAccessToken(token, accessToken string)
func SetAccessToken ¶
func SetAccessToken(token string)
Types ¶
Click to show internal directories.
Click to hide internal directories.