velox

package module
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Compatibility with the plugins:

  1. ⚠️ Do not use the plugin's master branch.
  2. ⚠️ Use tags with the same major version (e.g logger v3.0.3 + amqp v3.0.5, but not logger v4.0.0 + amqp v3.0.5)
  3. ⚠️ Currently supported plugins version is: v4.x.x
  4. ⚠️ Currently supported RR version is: >=v2023.x.x

Documentation

Index

Constants

View Source
const (
	V2023 string = "v2023"
	V2    string = "v2"
)

Variables

This section is empty.

Functions

func IsDigit added in v1.5.1

func IsDigit(num string) bool

func ParseModuleInfo added in v1.5.1

func ParseModuleInfo(module string, t time.Time, rev string) string

ParseModuleInfo here we accept a module name and return the version e.g.: github.com/roadrunner-server/logger/v2 => v2

Types

type CodeHosting

type CodeHosting struct {
	BaseURL *Endpoint                `mapstructure:"endpoint"`
	Token   *Token                   `mapstructure:"token"`
	Plugins map[string]*PluginConfig `mapstructure:"plugins"`
}

type Config

type Config struct {
	// build args
	Velox map[string][]string `mapstructure:"velox"`
	// Version
	Roadrunner map[string]string `mapstructure:"roadrunner"`
	// GitHub configuration
	GitHub *CodeHosting `mapstructure:"github"`
	// GitLab configuration
	GitLab *CodeHosting `mapstructure:"gitlab"`
	// Log contains log configuration
	Log map[string]string `mapstructure:"log"`
}

func (*Config) Validate

func (c *Config) Validate() error

type Endpoint

type Endpoint struct {
	BaseURL string `mapstructure:"endpoint"`
}

type ModulesInfo added in v1.2.0

type ModulesInfo struct {
	// Version - commit sha or tag
	Version string
	// PseudoVersion - Go pseudo version
	PseudoVersion string
	// module name - eg: github.com/roadrunner-server/logger/v2
	ModuleName string
	// Replace (for the local dev)
	Replace string
}

ModulesInfo represents single go module

type PluginConfig

type PluginConfig struct {
	Ref     string `mapstructure:"ref"`
	Owner   string `mapstructure:"owner"`
	Repo    string `mapstructure:"repository"`
	Folder  string `mapstructure:"folder"`
	Replace string `mapstructure:"replace"`
}

type Token

type Token struct {
	Token string `mapstructure:"token"`
}

Directories

Path Synopsis
cmd
vx command
internal
cli

Jump to

Keyboard shortcuts

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