mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-25 10:18:59 +02:00
remove unnecessary encapsulation, setup branch updated to v0.8
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
package types
|
||||
|
||||
type Alias string
|
||||
@@ -1,10 +0,0 @@
|
||||
package types
|
||||
|
||||
type (
|
||||
Host string
|
||||
Subdomain = Alias
|
||||
)
|
||||
|
||||
func ValidateHost[String ~string](s String) (Host, error) {
|
||||
return Host(s), nil
|
||||
}
|
||||
@@ -33,6 +33,7 @@ type (
|
||||
LoadBalance *loadbalance.Config `json:"load_balance,omitempty" yaml:"load_balance"`
|
||||
Middlewares map[string]docker.LabelMap `json:"middlewares,omitempty" yaml:"middlewares"`
|
||||
Homepage *homepage.Item `json:"homepage,omitempty" yaml:"homepage"`
|
||||
// AccessLog *accesslog.Config `json:"access_log,omitempty" yaml:"access_log"`
|
||||
|
||||
/* Docker only */
|
||||
Container *docker.Container `json:"container,omitempty" yaml:"-"`
|
||||
|
||||
Reference in New Issue
Block a user