Documentation ¶
Index ¶
- type Logger
- type Repository
- func (r *Repository) ListEntry(ctx context.Context, input *domain.Query) ([]*domain.Entry, error)
- func (r *Repository) ListHostSuggest(ctx context.Context, value string) ([]string, error)
- func (r *Repository) ListLevelSuggest(ctx context.Context, value string) ([]string, error)
- func (r *Repository) ListNamespaceSuggest(ctx context.Context, value string) ([]string, error)
- func (r *Repository) ListSourceSuggest(ctx context.Context, value string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Debug(ctx context.Context, args ...interface{}) Debugf(ctx context.Context, template string, args ...interface{}) Info(ctx context.Context, args ...interface{}) Infof(ctx context.Context, template string, args ...interface{}) Warn(ctx context.Context, args ...interface{}) Warnf(ctx context.Context, template string, args ...interface{}) Error(ctx context.Context, args ...interface{}) Errorf(ctx context.Context, template string, args ...interface{}) }
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(db *sqlx.DB, logger Logger) *Repository
func (*Repository) ListHostSuggest ¶
func (*Repository) ListLevelSuggest ¶
func (*Repository) ListNamespaceSuggest ¶
func (*Repository) ListSourceSuggest ¶
Click to show internal directories.
Click to hide internal directories.