conf

package
v0.0.0-...-10161af Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ICPs []*ICP

Functions

func GetICPByURL

func GetICPByURL(url string) string

GetICPByURL tries to find the ICP with the given URL.

func Init

func Init(customConf string) error

Types

type Conf

type Conf struct {
	ICPs []*ICP `toml:"icp"`
}

type ICP

type ICP struct {
	URL string `toml:"url"`
	No  string `toml:"no"`
}

Jump to

Keyboard shortcuts

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