Documentation
¶
Index ¶
- func CheckAuth(ctx context.Context, authServiceURL string) bool
- type AuthenticationMiddleware
- func (a *AuthenticationMiddleware) Categories(ctx context.Context, id uint) ([]database.CategoryOut, error)
- func (a *AuthenticationMiddleware) Create(ctx context.Context, data database.GroupIn) (string, error)
- func (a *AuthenticationMiddleware) Delete(ctx context.Context, id uint) (string, error)
- func (a *AuthenticationMiddleware) GetAll(ctx context.Context) ([]database.GroupOutWithCategories, error)
- func (a *AuthenticationMiddleware) GetByID(ctx context.Context, id uint) (database.GroupOut, error)
- func (a *AuthenticationMiddleware) Update(ctx context.Context, id uint, data database.GroupIn) (string, error)
- type InstrumentingMiddleware
- func (i *InstrumentingMiddleware) Categories(ctx context.Context, id uint) (categories []database.CategoryOut, err error)
- func (i *InstrumentingMiddleware) Create(ctx context.Context, data database.GroupIn) (msg string, err error)
- func (i *InstrumentingMiddleware) Delete(ctx context.Context, id uint) (msg string, err error)
- func (i *InstrumentingMiddleware) GetAll(ctx context.Context) (groups []database.GroupOutWithCategories, err error)
- func (i *InstrumentingMiddleware) GetByID(ctx context.Context, id uint) (group database.GroupOut, err error)
- func (i *InstrumentingMiddleware) Update(ctx context.Context, id uint, data database.GroupIn) (msg string, err error)
- type LoggingMiddleware
- func (l *LoggingMiddleware) Categories(ctx context.Context, id uint) (categories []database.CategoryOut, err error)
- func (l *LoggingMiddleware) Create(ctx context.Context, data database.GroupIn) (msg string, err error)
- func (l *LoggingMiddleware) Delete(ctx context.Context, id uint) (msg string, err error)
- func (l *LoggingMiddleware) GetAll(ctx context.Context) (groups []database.GroupOutWithCategories, err error)
- func (l *LoggingMiddleware) GetByID(ctx context.Context, id uint) (group database.GroupOut, err error)
- func (l *LoggingMiddleware) Update(ctx context.Context, id uint, data database.GroupIn) (msg string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthenticationMiddleware ¶
func (*AuthenticationMiddleware) Categories ¶
func (a *AuthenticationMiddleware) Categories(ctx context.Context, id uint) ([]database.CategoryOut, error)
func (*AuthenticationMiddleware) GetAll ¶
func (a *AuthenticationMiddleware) GetAll(ctx context.Context) ([]database.GroupOutWithCategories, error)
type InstrumentingMiddleware ¶
type InstrumentingMiddleware struct { RequestCount metrics.Counter RequestLatency metrics.Histogram Next service.Service }
func (*InstrumentingMiddleware) Categories ¶
func (i *InstrumentingMiddleware) Categories(ctx context.Context, id uint) (categories []database.CategoryOut, err error)
func (*InstrumentingMiddleware) GetAll ¶
func (i *InstrumentingMiddleware) GetAll(ctx context.Context) (groups []database.GroupOutWithCategories, err error)
type LoggingMiddleware ¶
func (*LoggingMiddleware) Categories ¶
func (l *LoggingMiddleware) Categories(ctx context.Context, id uint) (categories []database.CategoryOut, err error)
func (*LoggingMiddleware) GetAll ¶
func (l *LoggingMiddleware) GetAll(ctx context.Context) (groups []database.GroupOutWithCategories, err error)
Click to show internal directories.
Click to hide internal directories.