author

package
v0.0.0-...-9b5cd94 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StripAuthorRandomPrefix

func StripAuthorRandomPrefix(pipeline []bson.M) []bson.M

StripAuthorRandomPrefix removes random prefix from author field in pipeline This is required to make unit test's comparison

Types

type Author

type Author struct {
	ID          string `bson:"_id" json:"_id"`
	Name        string `bson:"name" json:"name"`
	DisplayName string `bson:"display_name" json:"display_name"`
}

type Provider

type Provider interface {
	Pipeline() []bson.M
	PipelineForField(field string) []bson.M
	GetDisplayNameQuery(field string) bson.M
}

func NewProvider

func NewProvider(client mongo.DbClient, configProvider config.ApiConfigProvider) Provider

type Role

type Role struct {
	ID   string `bson:"_id" json:"_id"`
	Name string `bson:"name" json:"name"`
}

Jump to

Keyboard shortcuts

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