Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
Types ¶
type Language ¶
func NewLanguage ¶
type Service ¶
type Service interface { GetLanguage(ctx context.Context, id int64) (Language, error) GetLanguageByName(ctx context.Context, name string) (Language, error) GetSnippet(ctx context.Context, key string) (Snippet, error) AddSnippet(ctx context.Context, content string, langauge Language) (Snippet, error) }
Click to show internal directories.
Click to hide internal directories.