rpcserver

package
v2.1.42 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option added in v2.0.6

type Option func(s *Server) error

Option is a functional option for rpc server.

func WithGRPCServerOptions added in v2.0.6

func WithGRPCServerOptions(opts []grpc.ServerOption) Option

WithGRPCServerOptions set the server options of grpc.

func WithSelfSignedCert added in v2.0.6

func WithSelfSignedCert(tlsCert *tls.Certificate) Option

WithCertificate set the self signed certificate for server.

type SelfSignedCert added in v2.0.6

type SelfSignedCert struct {
	// TLSCert is certificate of tls.
	TLSCert *tls.Certificate

	// X509Cert is certificate of x509.
	X509Cert *x509.Certificate

	// CertChain is certificate chain of ASN.1 DER form.
	CertChain [][]byte
}

SelfSignedCert is self signed certificate.

type Server

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

Server is grpc server.

func New

func New(
	cfg *config.Config, database *database.Database, cache *cache.Cache, searcher searcher.Searcher,
	objectStorage objectstorage.ObjectStorage, opts ...Option) (*Server, *grpc.Server, error)

New returns a new manager server from the given options.

Jump to

Keyboard shortcuts

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