~egtann/inv2config

inv2config/srp.go -rw-r--r-- 485 bytes
f27c93b9 — Evan Tann rename module to inv2config, remove up dependency 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package main

type srpConfig struct {
	Services map[string]*backend
	API      struct{ Subnet string }
}

type backend struct {
	HealthPath string    `json:",omitempty"`
	Backends   []string  `json:",omitempty"`
	Redirect   *redirect `json:",omitempty"`
	Service    string    `json:",omitempty"`
	Port       int       `json:",omitempty"`
}

type redirect struct {
	URL         string `json:",omitempty"`
	Permanent   bool   `json:",omitempty"`
	DiscardPath bool   `json:",omitempty"`
}