client

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 New

func New(baseURL string) *Client

New creates a new API client

func (c *Client) CreateLink(url string) (string, error)

CreateLink creates a shortened URL

func (*Client) CreateSecret

func (c *Client) CreateSecret(encryptedData string) (string, error)

CreateSecret creates a new secret and returns the full URL

func (*Client) GetIP

func (c *Client) GetIP() (string, error)

GetIP retrieves the public IP address

func (c *Client) GetLink(short string) (*models.LinkResponse, error)

GetLink retrieves link information by short code

func (*Client) GetSecret

func (c *Client) GetSecret(short string) (string, error)

GetSecret retrieves a secret by short code

func (*Client) GetVersion

func (c *Client) GetVersion() (*models.VersionResponse, error)

GetVersion retrieves the server version information

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL