lotmoe

package
v0.0.0-...-1120f02 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 8 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(username, password string) (*Client, error)

func (*Client) Files

func (lm *Client) Files() ([]*File, error)

func (*Client) FindFile

func (lm *Client) FindFile(files []*File, filename string) (*File, bool)

func (*Client) Upload

func (lm *Client) Upload(filename string, reader io.Reader) (string, error)

type File

type File struct {
	Filename string `json:"filename,omitempty"`
	ID       string `json:"id,omitempty"`
	URL      string `json:"url,omitempty"`
}

Jump to

Keyboard shortcuts

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