Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupSignalHandler ¶
SetupSignalHandler registers for SIGTERM and SIGINT. A stop channel is returned which is closed on one of these signals. If a second signal is caught, the program is terminated with exit code 1.
Types ¶
type Checkpointer ¶
type Checkpointer interface { GetOrCreate(hookID int64) (*State, error) Update(hookID int64, pos *State) error }
func NewInMemoryLogPositionProvider ¶
func NewInMemoryLogPositionProvider() Checkpointer
type Config ¶
type Config struct { Rules StringSlice MetricsAddr string GitHubConfig github.Config Checkpointer Checkpointer }
type Forwarder ¶
type InMemoryCheckpointer ¶
type InMemoryCheckpointer struct {
// contains filtered or unexported fields
}
func (*InMemoryCheckpointer) GetOrCreate ¶
func (p *InMemoryCheckpointer) GetOrCreate(hookID int64) (*State, error)
type MultiForwarder ¶
type MultiForwarder struct { Rules []Rule Checkpointer Checkpointer // contains filtered or unexported fields }
func (*MultiForwarder) HandleReadyz ¶
func (f *MultiForwarder) HandleReadyz(w http.ResponseWriter, r *http.Request)
type RuleConfig ¶
type StringSlice ¶
type StringSlice []string
func (*StringSlice) Set ¶
func (s *StringSlice) Set(value string) error
func (*StringSlice) String ¶
func (s *StringSlice) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.