Documentation
¶
Overview ¶
Package http is a generated protocol buffer package.
It is generated from these files:
github.com/google/cloudprober/servers/http/config.proto
It has these top-level messages:
ServerConf
Package http implements an HTTP server that simply returns 'ok' for any URL and sends stats on a string channel. This is used by cloudprober to act as the backend for the HTTP based probes.
Index ¶
Constants ¶
View Source
const Default_ServerConf_Port int32 = 3141
Variables ¶
This section is empty.
Functions ¶
func ListenAndServe ¶
func ListenAndServe(ctx context.Context, c *ServerConf, dataChan chan<- *metrics.EventMetrics, l *logger.Logger) error
ListenAndServe starts a simple HTTP server on a given port. This function never returns unless there is an error.
Types ¶
type ServerConf ¶
type ServerConf struct { Port *int32 `protobuf:"varint,1,opt,name=port,def=3141" json:"port,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ServerConf) Descriptor ¶
func (*ServerConf) Descriptor() ([]byte, []int)
func (*ServerConf) GetPort ¶
func (m *ServerConf) GetPort() int32
func (*ServerConf) ProtoMessage ¶
func (*ServerConf) ProtoMessage()
func (*ServerConf) Reset ¶
func (m *ServerConf) Reset()
func (*ServerConf) String ¶
func (m *ServerConf) String() string
Click to show internal directories.
Click to hide internal directories.