identifier

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseApplicationMetadataIdentifier

type BaseApplicationMetadataIdentifier struct {
	Application string
	Group       string
}

BaseApplicationMetadataIdentifier is the base implement of BaseApplicationMetadataIdentifier interface

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
}

IMetadataIdentifier is the interface which describes 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
	BaseApplicationMetadataIdentifier
}

SubscriberMetadataIdentifier is inherit baseMetaIdentifier with service params: Revision

func NewSubscriberMetadataIdentifier

func NewSubscriberMetadataIdentifier(application string, revision string) *SubscriberMetadataIdentifier

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