yandex

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: MIT Imports: 4 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 interface {
	Fetch(ctx context.Context, stopID string, prognosis bool) (StopInfo, error)
	UpdateToken() error
}

Client for interacting with yandex client

func New

func New(l logger.Logger) (Client, error)

New initialisates new client. It's acceptable to pass nil for logger nolint:interfacer

type StopInfo

type StopInfo struct {
	IncomingTransport []TransportInfo
}

StopInfo model

type TransportInfo

type TransportInfo struct {
	Name   string
	Arrive time.Time
	Method string
}

TransportInfo model

Jump to

Keyboard shortcuts

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