Files
atom/providers/config/section_http.go
2023-01-28 11:09:11 +08:00

21 lines
310 B
Go

package config
import "fmt"
type Http struct {
Static string
Host string
Port uint
Https bool
HttpsCert string
HttpKey string
}
func (h Http) Address() string {
return fmt.Sprintf("%s:%d", h.Host, h.Port)
}
func (h Http) PortString() string {
return fmt.Sprintf(":%d", h.Port)
}