gitnogd

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitlabProjectInfo

type GitlabProjectInfo struct {
	Hostname     string
	ProjectId    int64
	EnabledSince time.Time
}

type Logger

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

type RegistryView

type RegistryView interface {
	GitlabProjectInfo(repoId uuid.I) *GitlabProjectInfo
}

type Server

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

func New

func New(
	ctx context.Context,
	lg Logger,
	registry RegistryView,
	gitlabs []*gitlab.Client,
	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