schemas

package
v2.0.0-...-1d53c46 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package schemas handles streaming schema updates and changes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupWatcher

func SetupWatcher(ctx context.Context, schemas *types.APISchemas, asl accesscontrol.AccessSetLookup, factory schema.Factory)

SetupWatcher create a new schema.Store for tracking schema changes

Types

type Store

type Store struct {
	types.Store
	// contains filtered or unexported fields
}

Store hold information for watching updates to schemas

func (*Store) Watch

func (s *Store) Watch(apiOp *types.APIRequest, _ *types.APISchema, _ types.WatchRequest) (chan types.APIEvent, error)

Watch will return a APIevent channel that tracks changes to schemas for a user in a given APIRequest. Changes will be returned until Done is closed on the context in the given APIRequest.

Jump to

Keyboard shortcuts

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