nogfsog2nd

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

Documentation

Overview

Package `nogfsog2nd` implements modules that are combined in `cmd/nogfsog2nd`.

DEPRECATED: `nogfsog2nd` is not used. All GRPCs use `nogfsostad` via `nogfsoregd`. Consider dropping nogfsog2nd-related code if it becomes tedious to maintain.

`RegistryView`: Watches the FSO registry and maintains information about active repos that are relevant for a nogfsog2nd instance.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

type RegistryView

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

func NewRegistryView

func NewRegistryView(lg Logger, cfg *RegistryViewConfig) *RegistryView

func (*RegistryView) GitlabProjectInfo

func (v *RegistryView) GitlabProjectInfo(
	repoId uuid.I,
) *gitnogd.GitlabProjectInfo

func (*RegistryView) Watch

func (v *RegistryView) Watch(
	ctx context.Context, conn *grpc.ClientConn,
) error

type RegistryViewConfig

type RegistryViewConfig struct {
	Registries []string
	Prefixes   []string
	Gitlabs    []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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