types

package
v0.0.0-...-73c6ec5 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package types implements custom datatypes returned by Riot APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Milliseconds

type Milliseconds int64

Milliseconds represents a time or duration in milliseconds.

func (Milliseconds) Duration

func (m Milliseconds) Duration() time.Duration

Duration returns the duration with the given number of milliseconds.

func (Milliseconds) Time

func (m Milliseconds) Time() time.Time

Time returns the time associated with the Unix milliseconds.

type StringInt64

type StringInt64 int64

StringInt64 is a JSON string that represents an int64 value.

func (StringInt64) Int64

func (s StringInt64) Int64() int64

func (*StringInt64) UnmarshalJSON

func (s *StringInt64) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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