slashdiablo

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: MIT Imports: 3 Imported by: 28

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
}

Client encapsulates the details of the Slashdiablo API.

func NewClient

func NewClient() Client

NewClient returns a new client with all dependencies setup.

func (*Client) GetAvailableMods

func (c *Client) GetAvailableMods() (io.ReadCloser, error)

GetAvailableMods will fetch the remote available mods source.

func (*Client) GetFile

func (c *Client) GetFile(filePath string) (io.ReadCloser, error)

GetFile will the file by the given path in the repository set on the service.

func (*Client) GetNews

func (c *Client) GetNews() (io.ReadCloser, error)

GetNews will fetch the remote news source.

Jump to

Keyboard shortcuts

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