Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateLink(url string) (string, error)
- func (c *Client) CreateSecret(encryptedData string) (string, error)
- func (c *Client) GetIP() (string, error)
- func (c *Client) GetLink(short string) (*models.LinkResponse, error)
- func (c *Client) GetSecret(short string) (string, error)
- func (c *Client) GetVersion() (*models.VersionResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
BaseURL string
}
Client handles API requests to the seqre server
func (*Client) CreateLink ¶
CreateLink creates a shortened URL
func (*Client) CreateSecret ¶
CreateSecret creates a new secret and returns the full URL
func (*Client) GetLink ¶
func (c *Client) GetLink(short string) (*models.LinkResponse, error)
GetLink retrieves link information by short code
func (*Client) GetVersion ¶
func (c *Client) GetVersion() (*models.VersionResponse, error)
GetVersion retrieves the server version information
Click to show internal directories.
Click to hide internal directories.