golane

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: GPL-3.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

golane

Wrapper for the unofficial azur lane json api in Go

Documentation

Index

Constants

View Source
const (
	// Version the package version
	Version = "1.0.2"
)

Variables

View Source
var (

	// Order enum of order
	Order = &orderBy{
		RARITY:      "rarity",
		TYPE:        "type",
		AFFILIATION: "affiliation",
	}
)

Functions

This section is empty.

Types

type AzurLane

type AzurLane struct {
	UserAgent string
}

AzurLane set default settings

func (AzurLane) GetBuildInfo

func (al AzurLane) GetBuildInfo(time string) (*structs.Construction, error)

GetBuildInfo retuns info about a certain construction time

func (AzurLane) GetShipByID

func (al AzurLane) GetShipByID(id string) (*structs.Ship, error)

GetShipByID get ship info by id

func (AzurLane) GetShipByName

func (al AzurLane) GetShipByName(name string) (*structs.Ship, error)

GetShipByName get ship info by name

func (AzurLane) GetShips

func (al AzurLane) GetShips(order order, value string) ([]structs.SmallShip, error)

GetShips returns a list of ships from rarity, type or affiliation order should be set using the "enum" Order, for example Order.TYPE value depends on what order is set too, for example if `Order.RARITY` is used value can be `Super Rare`

func (*AzurLane) Init

func (al *AzurLane) Init(params ...string)

Init initialize struct, first param can be user-agent to set a custom one, leave empty to use the package ua

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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