Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Default, _ = New("http://0.0.0.0:8080")
Functions ¶
func ListenAndServe ¶
func ListenAndServe() error
Types ¶
type Option ¶
type Option func(s *Server)
func WithRegistry ¶
func WithRegistry( cfg *etcd.Config, opts ...RegistryOption, ) Option
type RegistryOption ¶
type RegistryOption func(r *registries.Registry)
func WithContext ¶
func WithContext(ctx context.Context) RegistryOption
func WithPrefix ¶
func WithPrefix(p string) RegistryOption
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ListenAndServe ¶
Click to show internal directories.
Click to hide internal directories.