Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrVersionNotSupport = errors.New("link version is not support") ErrInvalidParams = errors.New("invalid parameters passed") ErrNotFound = errors.New("link not found") )
Exported errors.
Functions ¶
Types ¶
type Link ¶
Link defines the link struct
func (*Link) Description ¶
Description returns the description string of l.
type Store ¶
type Store interface { fmt.Stringer GetLink(ctx context.Context, org string, key string) (Link, error) GetLinks(ctx context.Context, org string) (map[string]Link, error) UpdateLink(ctx context.Context, org string, key string, ln Link) error DeleteLink(ctx context.Context, org string, key string) error }
Store defines the link store interface.
Click to show internal directories.
Click to hide internal directories.