Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Error is a pkg/server error Error = errs.Class("pkg/server error") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { tlsopts.Config Address string `user:"true" help:"public address to listen on" default:":7777"` PrivateAddress string `user:"true" help:"private address to listen on" default:"127.0.0.1:7778"` }
Config holds server specific configuration parameters
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents a bundle of services defined by a specific ID. Examples of servers are the satellite, the storagenode, and the uplink.
func New ¶
func New(opts *tlsopts.Options, publicAddr, privateAddr string, interceptor grpc.UnaryServerInterceptor, services ...Service) (*Server, error)
New creates a Server out of an Identity, a net.Listener, a UnaryServerInterceptor, and a set of services.
func (*Server) Identity ¶
func (p *Server) Identity() *identity.FullIdentity
Identity returns the server's identity
func (*Server) PrivateAddr ¶
PrivateAddr returns the server's private listener address
func (*Server) PrivateGRPC ¶
PrivateGRPC returns the server's gRPC handle for registration purposes
Click to show internal directories.
Click to hide internal directories.