lib

package
v0.0.0-...-487bb46 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MastodonApp

func MastodonApp() *mastodon.Application

func MastodonClient

func MastodonClient(config mastodon.Config) *mastodon.Client

Types

type Location

type Location struct {
	Lat  string
	Lon  string
	Note string
}

type Map

type Map struct {
	// locations UserLocations
	Path string
}

func NewMap

func NewMap(path string) *Map

func (*Map) Get

func (m *Map) Get() (locations UserLocations)

func (*Map) Render

func (m *Map) Render() (out []Pinpoint)

func (*Map) Set

func (m *Map) Set(locations UserLocations)

func (*Map) String

func (m *Map) String() string

func (*Map) Update

func (m *Map) Update(user string, location Location)

type Pinpoint

type Pinpoint struct {
	X    float64
	Y    float64
	Name string
	Note string
	Near []Pinpoint
}

type UserLocations

type UserLocations map[string]Location

Jump to

Keyboard shortcuts

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