getter

package
v1.0.0-sql.5 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Api

func Api(conf *config.Config, nav *navigation.NavigationItem, r *http.Request) (data map[string]interface{}, dataErr error)

Api uses the passed in nav item to work out the api urls to call, fetches the data and returns map of that - api urls have substitutions like {month} resolved before calling - multiple apis urls to call generate data with prefix based on their config name

  • "list": "/url"
  • "home": "/home" would generate List<Key> and Home<key> data

func GetUrl

func GetUrl(url *url.URL) (resp *http.Response, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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