akiuri

package
v0.0.0-...-0af65b8 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 2 Imported by: 11

README

Akita URI format.

akita://{service}:{object type}:{object identifier}

Documentation

Index

Constants

View Source
const (
	Scheme = "akita://"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectType

type ObjectType int
const (
	SPEC  ObjectType = iota
	TRACE            // aka learn session
)

func (*ObjectType) Is

func (o1 *ObjectType) Is(o2 ObjectType) bool

func (*ObjectType) IsSpec

func (o *ObjectType) IsSpec() bool

func (*ObjectType) IsTrace

func (o *ObjectType) IsTrace() bool

func (ObjectType) Ptr

func (o ObjectType) Ptr() *ObjectType

func (ObjectType) String

func (o ObjectType) String() string

type URI

type URI struct {
	ServiceName string
	ObjectName  string
	ObjectType  *ObjectType
}

func Parse

func Parse(s string) (URI, error)

func (URI) MarshalText

func (u URI) MarshalText() ([]byte, error)

func (URI) String

func (u URI) String() string

func (*URI) UnmarshalText

func (u *URI) UnmarshalText(data []byte) error

Jump to

Keyboard shortcuts

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