dota2ru

package
v0.0.0-...-89240b8 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(mux *httprouter.Router, service Service, logger *log.Logger)

Types

type Heading

type Heading struct {
	Title string
	Link  string
}

Heading represents forum thread heading.

type Service

type Service interface {
	// ParseHeadings returns headings from dota2.ru forum.
	ParseHeadings(page int) ([]Heading, error)
}

Service encapsulates usecase logic of dota2ru.

func NewService

func NewService() Service

NewService returns new Service object.

Jump to

Keyboard shortcuts

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