Help us shape the future of Go! Take the 2026 Go Developer Survey

identifier

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseMetadataIdentifier

type BaseMetadataIdentifier struct {
	ServiceInterface string
	Version          string
	Group            string
	Side             string
}

BaseMetadataIdentifier is the base implement of BaseMetadataIdentifier interface

type IMetadataIdentifier

type IMetadataIdentifier interface {
	GetFilePathKey() string
	GetIdentifierKey() string
}

BaseMetadataIdentifier defined for describe the Metadata base identify

type MetadataIdentifier

type MetadataIdentifier struct {
	Application string
	BaseMetadataIdentifier
}

MetadataIdentifier is inherit baseMetaIdentifier with Application name

func (*MetadataIdentifier) GetFilePathKey

func (mdi *MetadataIdentifier) GetFilePathKey() string

GetFilePathKey returns string that format is metadata/path/Version/Group/Side/Application

func (*MetadataIdentifier) GetIdentifierKey

func (mdi *MetadataIdentifier) GetIdentifierKey() string

GetIdentifierKey returns string that format is service:Version:Group:Side:Application

type ServiceMetadataIdentifier

type ServiceMetadataIdentifier struct {
	Revision string
	Protocol string
	BaseMetadataIdentifier
}

ServiceMetadataIdentifier is inherit baseMetaIdentifier with service params: Revision and Protocol

func NewServiceMetadataIdentifier

func NewServiceMetadataIdentifier(url *common.URL) *ServiceMetadataIdentifier

NewServiceMetadataIdentifier create instance. The ServiceInterface is the @url.Service() other parameters are read from @url

func (*ServiceMetadataIdentifier) GetFilePathKey

func (mdi *ServiceMetadataIdentifier) GetFilePathKey() string

GetFilePathKey returns string that format is metadata/path/Version/Group/Side/Protocol/"revision"+Revision

func (*ServiceMetadataIdentifier) GetIdentifierKey

func (mdi *ServiceMetadataIdentifier) GetIdentifierKey() string

GetIdentifierKey returns string that format is service:Version:Group:Side:Protocol:"revision"+Revision

type SubscriberMetadataIdentifier

type SubscriberMetadataIdentifier struct {
	Revision string
	MetadataIdentifier
}

SubscriberMetadataIdentifier is inherit baseMetaIdentifier with service params: Revision

func (*SubscriberMetadataIdentifier) GetFilePathKey

func (mdi *SubscriberMetadataIdentifier) GetFilePathKey() string

GetFilePathKey returns string that format is metadata/path/Version/Group/Side/Revision

func (*SubscriberMetadataIdentifier) GetIdentifierKey

func (mdi *SubscriberMetadataIdentifier) GetIdentifierKey() string

GetIdentifierKey returns string that format is service:Version:Group:Side:Revision

Jump to

Keyboard shortcuts

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