Documentation
¶
Overview ¶
Package cluster contains complex tests that involve multiple servers.
Index ¶
- type Client
- type Cluster
- type Line
- type LineType
- type Page
- func (p Page) Contains(line Line) Page
- func (p Page) Error(err string)
- func (p Page) Follow(text string) Page
- func (p Page) FollowInput(text, input string) Page
- func (p Page) Goto(path string) Page
- func (p Page) GotoInput(path, input string) Page
- func (p Page) NotContains(line Line) Page
- func (p Page) OK() Page
- func (p Page) Refresh() Page
- type Server
- type T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a fed.Client that handles a HTTP request by calling the destination server's http.Handler.
type Cluster ¶
type Cluster Client
Cluster represents a collection of servers that talk to each other.
func NewCluster ¶
NewCluster creates a collection of servers that talk to each other.
type Page ¶
type Page struct {
Path string
Raw string
Status string
Lines []Line
Links map[string]string
// contains filtered or unexported fields
}
Respnonse represents a frontend page displayed to the user.
func (Page) FollowInput ¶
FollowInput is like Page.Follow but also accepts user-provided input.
func (Page) NotContains ¶
type Server ¶
type Server struct {
Test T
Domain string
Config *cfg.Config
DB *sql.DB
Resolver *fed.Resolver
AppActorKeys [2]httpsig.Key
Frontend gemini.Listener
Backend http.Handler
Inbox *inbox.Inbox
Incoming *inbox.Queue
Outgoing *fed.Queue
// contains filtered or unexported fields
}
func (*Server) Handle ¶
func (s *Server) Handle(cert tls.Certificate, path string) Page
Handle simulates a Gemini request, follows redirects and returns a Page.
func (*Server) HandleInput ¶
func (s *Server) HandleInput(cert tls.Certificate, path, input string) Page
HandleInput is like Server.Handle but also accepts user-provided input.
func (*Server) RegisterPortable ¶ added in v0.19.0
func (s *Server) RegisterPortable(cert tls.Certificate) Page
Click to show internal directories.
Click to hide internal directories.