server

package
v1.0.50 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(services *backends.Services, users Users, logger *zap.SugaredLogger) *grpc.Server

Types

type BasicAuthInterceptor

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

func NewBasicAuthInterceptor

func NewBasicAuthInterceptor(u Users, p Permissions) *BasicAuthInterceptor

func (*BasicAuthInterceptor) Stream

func (*BasicAuthInterceptor) Unary

type Permissions

type Permissions map[string][]string

type User

type User struct {
	Username string
	Password string
	Role     string
}

type Users

type Users []*User

Jump to

Keyboard shortcuts

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