Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SnippetService ¶
type SnippetService struct {
*elasticsearch.Client
}
func NewSnippetService ¶
func NewSnippetService() *SnippetService
func (*SnippetService) CreateManySnippets ¶
func (s *SnippetService) CreateManySnippets(sn []*models.Snippet) error
func (*SnippetService) CreateSnippet ¶
func (s *SnippetService) CreateSnippet(snippet models.Snippet) error
func (*SnippetService) ReadSnippet ¶
func (s *SnippetService) ReadSnippet(id int) (*models.Snippet, error)
func (*SnippetService) SearchSnippet ¶
func (s *SnippetService) SearchSnippet(query string) error
Click to show internal directories.
Click to hide internal directories.