component

package
v0.1.1-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IdRegExp      = regexp.MustCompile(`[a-f0-9]{5}`)
	GitHashRegExp = regexp.MustCompile(`[a-f0-9]{7}`)
)

Functions

func Equal

func Equal(lhs, rhs Component) bool

Types

type Component

type Component interface {
	GetApp() string
	SetApp(string)
	GetName() string
	SetName(string)
	GetGitHash() string
	SetGitHash(string)
	GetId() string
	SetId(string)

	GetURI() string
	GetKey() string
	GetHTTPKey() string

	GetRequestSubject() string
	GetResponseSubject() string
	GetAsyncSubject() string
	GetRequestConsumer() string
	GetResponseConsumer() string
	GetAsyncConsumer() string
	GetStream() string
	GetSubjectWildcard() string
}

func Copy

func Copy(src Component) Component

func New

func New(fields Fields) Component

func ParseURI

func ParseURI(uri string) (Component, error)

type Fields

type Fields struct {
	App     string
	Name    string
	GitHash string
	Id      string
}

type InvalidURI

type InvalidURI struct {
	Err string
}

func (*InvalidURI) Error

func (e *InvalidURI) Error() string

Jump to

Keyboard shortcuts

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