api

package
v0.0.0-...-c3e5ec8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCtrl

func NewCtrl(log *logrus.Entry, svc Service) *ctrl

NewCtrl will create an object that represent the ctrl struct

func Ping

func Ping(r render.Render)

Ping will handle the ping endpoint

Types

type Repository

type Repository interface {
	Create(docs []solr.Document, chunkSize int, params *url.Values) error
	Select(key, value string) ([]solr.Document, error)
	Delete(data map[string]interface{}, params *url.Values) error
}

Repository represent the repositories

func NewSolrRepository

func NewSolrRepository(Client *solr.SolrInterface) Repository

NewSolrRepository will create an object that represent the Repository interface

type Service

type Service interface {
	Create(data form.UserForm) (int, error)
	Select(key, value string) ([]map[string]interface{}, int, error)
	Delete(id string) (int, error)
}

Service represent the services

func NewService

func NewService(log *logrus.Entry, r Repository) Service

NewService will create an object that represent the Service interface

Directories

Path Synopsis
api_struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL