databroker

package
v0.15.7 Latest Latest
Warning

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

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

Documentation

Overview

Package databroker is a pomerium service that handles the storage of user session state. It communicates over RPC with other pomerium services, and can be configured to use a number of different backend databroker stores.

Package databroker contains the databroker service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataBroker

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

DataBroker represents the databroker service. The databroker service is a simple interface for storing keyed blobs (bytes) of unstructured data.

func New

func New(cfg *config.Config) (*DataBroker, error)

New creates a new databroker service.

func (*DataBroker) OnConfigChange

func (c *DataBroker) OnConfigChange(ctx context.Context, cfg *config.Config)

OnConfigChange is called whenever configuration is changed.

func (*DataBroker) RefreshUser

func (c *DataBroker) RefreshUser(ctx context.Context, req *directory.RefreshUserRequest) (*emptypb.Empty, error)

RefreshUser refreshes a user's directory information.

func (*DataBroker) Register

func (c *DataBroker) Register(grpcServer *grpc.Server)

Register registers all the gRPC services with the given server.

func (*DataBroker) Run

func (c *DataBroker) Run(ctx context.Context) error

Run runs the databroker components.

Jump to

Keyboard shortcuts

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