spicedb

package
v0.0.0-...-046da75 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "spicedb"

Variables

View Source
var Schemaprefix string = ""

Functions

func GetAuthzedClient

func GetAuthzedClient() *authzed.Client

Types

type Config

type Config struct {
	Endpoint     string `json:"endpoint"`
	Insecure     bool   `json:"insecure"`
	Token        string `json:"token"`
	Schemaprefix string `json:"schemaprefix"`
}

type Factory

type Factory struct{}

func (Factory) New

func (Factory) New(m *plugins.Manager, config any) plugins.Plugin

func (Factory) Validate

func (Factory) Validate(_ *plugins.Manager, config []byte) (any, error)

type SpicedbPlugin

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

func (*SpicedbPlugin) Reconfigure

func (p *SpicedbPlugin) Reconfigure(ctx context.Context, config any)

func (*SpicedbPlugin) Start

func (p *SpicedbPlugin) Start(ctx context.Context) error

func (*SpicedbPlugin) Stop

func (p *SpicedbPlugin) Stop(ctx context.Context)

Jump to

Keyboard shortcuts

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