transport

package
v2.0.0-...-bfe8e52 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PurposePluginRPC     = "rpc"
	PurposePluginWebhook = "webhook"
)
View Source
const ServerTLSName = "server.gotify.home.arpa"

Variables

This section is empty.

Functions

func BuildPluginTLSName

func BuildPluginTLSName(purpose string, moduleName string) string

func IteratePEMFile

func IteratePEMFile(r io.Reader, callback func(block *pem.Block) (continueIterate bool, err error)) error

func NewAnonPipe

func NewAnonPipe(rx *uintptr, tx *uintptr, cloexec bool) error

func NewListener

func NewListener() (net.Listener, string, error)

func NewTCPListener

func NewTCPListener() (net.Listener, string, error)

Types

type EphemeralTLSClient

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

func NewEphemeralTLSClient

func NewEphemeralTLSClient() (*EphemeralTLSClient, error)

func (*EphemeralTLSClient) CACert

func (s *EphemeralTLSClient) CACert() *x509.Certificate

func (*EphemeralTLSClient) ClientTLSConfig

func (s *EphemeralTLSClient) ClientTLSConfig(moduleName string) *tls.Config

func (*EphemeralTLSClient) Kex

func (s *EphemeralTLSClient) Kex(req io.Reader, resp io.Writer) error

func (*EphemeralTLSClient) ServerTLSConfig

func (s *EphemeralTLSClient) ServerTLSConfig() *tls.Config

func (*EphemeralTLSClient) SignCSR

func (s *EphemeralTLSClient) SignCSR(dnsName string, csr *x509.CertificateRequest) ([]byte, error)

func (*EphemeralTLSClient) SignPluginCSR

func (s *EphemeralTLSClient) SignPluginCSR(moduleName string, csr *x509.CertificateRequest) ([]byte, error)

type GrpcPipeTLS

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

func NewGrpcPipeTLS

func NewGrpcPipeTLS(address string, config *tls.Config) *GrpcPipeTLS

func (*GrpcPipeTLS) Dial

func (p *GrpcPipeTLS) Dial(ctx context.Context) (*grpc.ClientConn, error)

Jump to

Keyboard shortcuts

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