Documentation
¶
Overview ¶
Package pkg provides protocol package management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitPackage ¶
InitPackage initializes a new PSL package in the given directory.
Types ¶
type PackageMeta ¶
type PackageMeta struct {
Name string `json:"name"`
Version string `json:"version"`
Description string `json:"description"`
Author string `json:"author"`
License string `json:"license"`
Protocols []string `json:"protocols"`
}
PackageMeta describes a PSL package.
type Registry ¶
type Registry struct {
URL string
Packages map[string]PackageMeta
}
Registry represents a package registry.
func NewRegistry ¶
NewRegistry creates a new registry client.
func (*Registry) Publish ¶
func (r *Registry) Publish(meta PackageMeta) error
Publish publishes a package to the registry.
func (*Registry) Search ¶
func (r *Registry) Search(query string) []PackageMeta
Search searches packages by query.
Click to show internal directories.
Click to hide internal directories.