oplog

package
v0.0.0-...-b178995 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package oplog provides an HTTP Server-Sent Events (SSE) endpoint for real-time replication of the BlobStore.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker struct {
	// contains filtered or unexported fields
}

func (*Broker) ServeHTTP

func (b *Broker) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Op

type Op struct {
	Event, Data string
}

type Oplog

type Oplog struct {
	// contains filtered or unexported fields
}

func New

func New(logger log.Logger, conf *config.Config, h *hub.Hub) (*Oplog, error)

func (*Oplog) Register

func (o *Oplog) Register(r *mux.Router, basicAuth func(http.Handler) http.Handler)

Jump to

Keyboard shortcuts

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