Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDrpcRegister = New(defaultTimeOut)
Functions ¶
func HandleHTTP ¶
func HandleHTTP()
Types ¶
type DrpcRegistry ¶
type DrpcRegistry struct {
// contains filtered or unexported fields
}
func New ¶
func New(timeout time.Duration) *DrpcRegistry
func (*DrpcRegistry) HandleHTTP ¶
func (r *DrpcRegistry) HandleHTTP(registryPath string)
HandleHTTP registers a HTTP handler for DrpcRegistry messages on registryPath
func (*DrpcRegistry) ServeHTTP ¶
func (r *DrpcRegistry) ServeHTTP(w http.ResponseWriter, req *http.Request)
run at /_drpc_/registry
type ServerItem ¶
type ServerItem struct { Addr string // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.