grpc

package
v0.0.0-...-23e64f8 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	server.UnimplementedServerServer

	Signer ssh.Signer
}

Server implements server.ServerServer and handles grpc requests

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(listenAddress string) error

ListenAndServe sets up a tcp socket listening on given <host>:<port> listenAddress

func (*Server) SignUserPublicKey

SignUserPublicKey is part of the grpc server interface and processes incoming server.SignUserPublicKeyRequest objects TODO: instead of returning error create response object containing server.Error

type ServerConfig

type ServerConfig struct {
	BaseDir                     string
	CertificateValidityDuration time.Duration
	HostKeyFileName             string
}

A ServerConfig object stores customizable options that affect server operation

Jump to

Keyboard shortcuts

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