http

package
v0.0.0-...-b28dce8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL