Documentation ¶
Index ¶
- func Dir(useLocal bool, name string) http.FileSystem
- func FS(useLocal bool) http.FileSystem
- func FSByte(useLocal bool, name string) ([]byte, error)
- func FSMustByte(useLocal bool, name string) []byte
- func FSMustString(useLocal bool, name string) string
- func FSString(useLocal bool, name string) (string, error)
- type ConfigOptions
- type Response
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dir ¶ added in v1.10.0
func Dir(useLocal bool, name string) http.FileSystem
Dir returns a http.Filesystem for the embedded assets on a given prefix dir. If useLocal is true, the filesystem's contents are instead used.
func FS ¶ added in v1.10.0
func FS(useLocal bool) http.FileSystem
FS returns a http.Filesystem for the embedded assets. If useLocal is true, the filesystem's contents are instead used.
func FSByte ¶ added in v1.10.0
FSByte returns the named file from the embedded assets. If useLocal is true, the filesystem's contents are instead used.
func FSMustByte ¶ added in v1.10.0
FSMustByte is the same as FSByte, but panics if name is not present.
func FSMustString ¶ added in v1.10.0
FSMustString is the string version of FSMustByte.
Types ¶
type ConfigOptions ¶ added in v1.7.0
type ConfigOptions struct { FrontendHostPort string DriverHostPort string CustomerHostPort string RouteHostPort string Basepath string }
ConfigOptions used to make sure service clients can find correct server ports
Click to show internal directories.
Click to hide internal directories.