identities

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIdentitiesController

func NewIdentitiesController(logger logging.Logger, s Service) api.Router

NewIdentitiesController creates a default api controller

Types

type Repository

type Repository interface {
	// contains filtered or unexported methods
}

Repository - Used for interacting identities on the data store

func NewIdentityRepository

func NewIdentityRepository(db *sql.DB) Repository

NewIdentityRepository - Builds a new repository tied to the DB passed in.

type Service

type Service interface {
	DisableIdentity(claims tmw.TumblerClaims, identityID string) error
	GetIdentity(claims tmw.TumblerClaims, identityID string) (*client.Identity, error)
	ListIdentities(claims tmw.TumblerClaims) ([]client.Identity, error)
	UpdateIdentity(claims tmw.TumblerClaims, identityID string, update client.UpdateIdentity) (*client.Identity, error)

	Register(register client.Register, invite *client.Invite) (*client.Identity, error)
	GetIdentityByID(identityID string) (*client.Identity, error)

	UpdateInsecure(identity *client.Identity) (*client.Identity, error)
}

Service - Service that implents the logic for the IdentitiesApiServicer This service should implement the business logic for every endpoint for the IdentitiesApi API.

func NewIdentitiesService

func NewIdentitiesService(time stime.TimeService, repository Repository) Service

NewIdentitiesService creates a default service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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