authority

package
v1.0.54 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) (*Client, error)

func (*Client) GetOrganization

func (c *Client) GetOrganization(id string) (*models.Organization, error)

func (*Client) GetPerson

func (c *Client) GetPerson(id string) (*models.Person, error)

func (*Client) GetProject

func (c *Client) GetProject(id string) (*models.Project, error)

func (*Client) GetUser

func (c *Client) GetUser(id string) (*models.Person, error)

func (*Client) GetUserByUsername

func (c *Client) GetUserByUsername(username string) (*models.Person, error)

func (*Client) SuggestOrganizations

func (c *Client) SuggestOrganizations(q string) ([]models.Completion, error)

func (*Client) SuggestPeople

func (c *Client) SuggestPeople(q string) ([]*models.Person, error)

func (*Client) SuggestProjects

func (c *Client) SuggestProjects(q string) ([]models.Completion, error)

func (*Client) SuggestUsers

func (c *Client) SuggestUsers(q string) ([]*models.Person, error)

type Config

type Config struct {
	MongoDBURI string
	ESURI      []string
}

type M

type M map[string]any

Jump to

Keyboard shortcuts

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