gitnogdstateless

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

type Server

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

func New

func New(
	ctx context.Context,
	lg Logger,
	regConn *grpc.ClientConn,
	gitlabs []*gitlab.Client,
	prefixes []string,
	broadcaster *broadcast.Broadcaster,
) *Server

func (*Server) Content

func (srv *Server) Content(
	ctx context.Context, i *pb.ContentI,
) (*pb.ContentO, error)

func (*Server) Head

func (srv *Server) Head(ctx context.Context, i *pb.HeadI) (*pb.HeadO, error)

func (*Server) Meta

func (srv *Server) Meta(ctx context.Context, i *pb.MetaI) (*pb.MetaO, error)

func (*Server) PutMeta

func (srv *Server) PutMeta(
	ctx context.Context, i *pb.PutMetaI,
) (*pb.PutMetaO, error)

func (*Server) Summary

func (srv *Server) Summary(
	ctx context.Context, i *pb.SummaryI,
) (*pb.SummaryO, error)

Jump to

Keyboard shortcuts

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