Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repository ¶
type Repository interface { // ExpandShortURL returns the stored full URL value for the given short path ExpandShortURL(context.Context, string) (string, error) // RegisterURLMapping registers the first string as the long value URL on the second string short path. // Emits an error if parameters are invalid or registration fails RegisterURLMapping(context.Context, string, string) error // ClearMappingWithKey removes the any expension on the given key. // Emits an error if the removal fails ClearMappingWithKey(context.Context, string) error }
Repository defines an interface for interacting with the MySQL instances
Click to show internal directories.
Click to hide internal directories.