Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIEntry ¶
type APIEntry interface { Get(method string, params url.Values) (map[string]*json.RawMessage, error) Post(method string, data url.Values) (map[string]*json.RawMessage, error) }
APIEntry provides functions for an endpoint
type Session ¶
type Session interface { GetSid() string Login(synoOption *options.SynologyOptions) (string, error) Logout() error Get(path string, params url.Values) (*http.Response, error) Post(path string, data url.Values) (*http.Response, error) }
Session provides session level functions
func NewSession ¶
NewSession creates a new Session object
Click to show internal directories.
Click to hide internal directories.