Documentation ¶
Overview ¶
Package storage provide abstract types to handle storage
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type URLService ¶
type URLService interface { // Save an URL, return short code and error Save(context.Context, string) (Code, error) // Use code to return URL Load(context.Context, Code) (string, error) // Return detailed info of code LoadInfo(context.Context, Code) (Item, error) }
URLService is the Type to interact with Database
Click to show internal directories.
Click to hide internal directories.