readmodel

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatalogModel

type CatalogModel struct {
	ProviderCode string
	Model        catalogdomain.Model
}

type Data

type Data struct {
	Version       string
	Gateways      []gatewaydomain.Gateway
	Consumers     []consumerdomain.Consumer
	Registries    []registrydomain.Registry
	Policies      []policydomain.Policy
	Auths         []authdomain.Auth
	Roles         []roledomain.Role
	Providers     []catalogdomain.Provider
	CatalogModels []CatalogModel
}

type Snapshot

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

func Build

func Build(data Data) *Snapshot

func (*Snapshot) AuthByAPIKeyHash

func (s *Snapshot) AuthByAPIKeyHash(keyHash string) (*authdomain.Auth, bool)

func (*Snapshot) AuthByID

func (s *Snapshot) AuthByID(id ids.AuthID) (*authdomain.Auth, bool)

func (*Snapshot) AuthsByIDs

func (s *Snapshot) AuthsByIDs(gatewayID ids.GatewayID, authIDs []ids.AuthID) []*authdomain.Auth

func (*Snapshot) AuthsEnabledByGatewayAndType

func (s *Snapshot) AuthsEnabledByGatewayAndType(gatewayID ids.GatewayID, authType authdomain.Type) []*authdomain.Auth

func (*Snapshot) AuthsEnabledByTypes

func (s *Snapshot) AuthsEnabledByTypes(types []authdomain.Type) []*authdomain.Auth

func (*Snapshot) CatalogModelByProviderSlug

func (s *Snapshot) CatalogModelByProviderSlug(providerCode, slug string) (*catalogdomain.Model, bool)

func (*Snapshot) CatalogModelsByProviderCode

func (s *Snapshot) CatalogModelsByProviderCode(providerCode string) []*catalogdomain.Model

func (*Snapshot) ConsumerActiveBySlug

func (s *Snapshot) ConsumerActiveBySlug(slug string) (*consumerdomain.Consumer, bool)

func (*Snapshot) ConsumerByID

func (s *Snapshot) ConsumerByID(id ids.ConsumerID) (*consumerdomain.Consumer, bool)

func (*Snapshot) ConsumersByAuthID

func (s *Snapshot) ConsumersByAuthID(authID ids.AuthID) []*consumerdomain.Consumer

func (*Snapshot) ConsumersByGateway

func (s *Snapshot) ConsumersByGateway(gatewayID ids.GatewayID) []*consumerdomain.Consumer

func (*Snapshot) Data

func (s *Snapshot) Data() Data

func (*Snapshot) GatewayByDomain

func (s *Snapshot) GatewayByDomain(host string) (*gatewaydomain.Gateway, bool)

func (*Snapshot) GatewayByID

func (s *Snapshot) GatewayByID(id ids.GatewayID) (*gatewaydomain.Gateway, bool)

func (*Snapshot) GatewayBySlug

func (s *Snapshot) GatewayBySlug(slug string) (*gatewaydomain.Gateway, bool)

func (*Snapshot) PoliciesByGateway

func (s *Snapshot) PoliciesByGateway(gatewayID ids.GatewayID) []*policydomain.Policy

func (*Snapshot) PoliciesByIDs

func (s *Snapshot) PoliciesByIDs(gatewayID ids.GatewayID, policyIDs []ids.PolicyID) []*policydomain.Policy

func (*Snapshot) PolicyByID

func (s *Snapshot) PolicyByID(id ids.PolicyID) (*policydomain.Policy, bool)

func (*Snapshot) Providers

func (s *Snapshot) Providers() []*catalogdomain.Provider

func (*Snapshot) RegistriesByIDs

func (s *Snapshot) RegistriesByIDs(gatewayID ids.GatewayID, registryIDs []ids.RegistryID) []*registrydomain.Registry

func (*Snapshot) RegistryByID

func (s *Snapshot) RegistryByID(id ids.RegistryID) (*registrydomain.Registry, bool)

func (*Snapshot) RoleByID

func (s *Snapshot) RoleByID(id ids.RoleID) (*roledomain.Role, bool)

func (*Snapshot) RolesByGateway

func (s *Snapshot) RolesByGateway(gatewayID ids.GatewayID) []*roledomain.Role

func (*Snapshot) RolesByIDs

func (s *Snapshot) RolesByIDs(gatewayID ids.GatewayID, roleIDs []ids.RoleID) []*roledomain.Role

func (*Snapshot) Version

func (s *Snapshot) Version() string

Jump to

Keyboard shortcuts

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