common

package
v0.0.0-...-afa4d9b Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthIdentity

func GetAuthIdentity(ctx context.Context) string

func PathPrefixes

func PathPrefixes(path string) []string

func TLSAuthFunc

func TLSAuthFunc(ctx context.Context) (context.Context, error)

TLSAuthFunc is an AuthFunc for grpc-middleware/grpc_auth.

Types

type NotifyBatch

type NotifyBatch struct {
	Nodes map[string][]*pb.Node
	// contains filtered or unexported fields
}

func NewNotifyBatch

func NewNotifyBatch(src NotifySource) *NotifyBatch

func (*NotifyBatch) Add

func (b *NotifyBatch) Add(node *pb.Node)

func (*NotifyBatch) Apply

func (b *NotifyBatch) Apply(f func(string, []*pb.Node))

type NotifySource

type NotifySource interface {
	Has(string) bool
}

Jump to

Keyboard shortcuts

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