rpc

package
v0.0.0-...-38509db Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServer

func GetServer(env cedar.Environment, conf AuthConfig) (*grpc.Server, error)

Types

type AuthConfig

type AuthConfig struct {
	TLS         bool
	UserAuth    bool
	SkipVerify  bool
	CAName      string
	ServiceName string
	Depot       certdepot.Depot
	UserManager gimlet.UserManager
}

func (*AuthConfig) ResolveTLS

func (c *AuthConfig) ResolveTLS() (*tls.Config, error)

func (*AuthConfig) Validate

func (c *AuthConfig) Validate() error

type WaitFunc

type WaitFunc func(context.Context)

func RunServer

func RunServer(ctx context.Context, srv *grpc.Server, addr string) (WaitFunc, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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