client

package module
Version: v0.0.0-...-226d683 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(page string, options WikiClientOptions) ([]parser.Event, error)

func Subscribe

func Subscribe(call SubscribeFunc, frequency time.Duration) error

Types

type SubscribeFunc

type SubscribeFunc func(parser.Event)

type WikiClientOptions

type WikiClientOptions struct {
	MaxAge          time.Duration
	IncludeOriginal bool
}

type WikiRequestOptions

type WikiRequestOptions struct {
	MaxAge          time.Duration
	IncludeOriginal bool
}

type WikiResponse

type WikiResponse struct {
	Error WikiResponseError
	Parse struct {
		Text map[string]interface{}
	}
}

func GetEventsPage

func GetEventsPage(page string, options WikiRequestOptions) (*WikiResponse, error)

type WikiResponseError

type WikiResponseError struct {
	Code string
	Info string
}

Source Files

Jump to

Keyboard shortcuts

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