broadcastd

package
v0.0.0-...-4450389 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NsBroadcast  = "broadcast"
	BroadcastAll = "all"
)
View Source
const AABroadcastRead = fsoauthz.AABroadcastRead
View Source
const AABroadcastWrite = fsoauthz.AABroadcastWrite
View Source
const MaxPostBatchLen = 100
View Source
const PostQueueLen = 200

Variables

View Source
var ErrPostQueueFull = errors.New("post queue full")

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Errorw(msg string, kv ...interface{})
	Infow(msg string, kv ...interface{})
}

type Server

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

func New

func New(
	ctx context.Context,
	lg Logger,
	authn auth.Authenticator,
	authz auth.Authorizer,
	names *shorteruuid.Names,
	broadcastJ *events.Journal,
) *Server

func (*Server) Events

func (srv *Server) Events(
	req *pb.BroadcastEventsI, stream pb.Broadcast_EventsServer,
) error

func (*Server) PostGitRefUpdated

func (srv *Server) PostGitRefUpdated(
	ctx context.Context, i *pb.PostGitRefUpdatedI,
) (*pb.PostGitRefUpdatedO, error)

func (*Server) Serve

func (srv *Server) Serve() error

Jump to

Keyboard shortcuts

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