uris

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignId

func AssignId(uri string, id string) string

func AssignResource

func AssignResource(uri string, resource string) string

func NewURL

func NewURL(uris_table *URIs, path string) *url.URL

Types

type URIs

type URIs struct {
	Root      string `json:"root"`
	Account   string `json:"account"`
	Posts     string `json:"posts"`
	Post      string `json:"post"`
	Inbox     string `json:"inbox"`
	Outbox    string `json:"outbox"`
	Followers string `json:"followers"`
	Following string `json:"following"`
	Icon      string `json:"icon"`

	Hostname string `json:"hostname"`
	Insecure bool   `json:"insecure"`
}

func DefaultURIs

func DefaultURIs() *URIs

Jump to

Keyboard shortcuts

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