Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is pipehub entrypoint.
func NewClient ¶
func NewClient(cfg ClientConfig) (Client, error)
NewClient return a configured pipehub client.
type ClientConfig ¶
type ClientConfig struct { Server ClientConfigServer Host []ClientConfigHost AsyncErrHandler func(error) }
ClientConfig holds the client configuration.
type ClientConfigHost ¶
ClientConfigHost holds the configuration to direct the request from hosts to handlers.
type ClientConfigServer ¶
type ClientConfigServer struct { HTTP ClientConfigServerHTTP Action ClientConfigServerAction }
ClientConfigServer holds the server configuration.
type ClientConfigServerAction ¶
ClientConfigServerAction holds the action server configuration.
type ClientConfigServerHTTP ¶
type ClientConfigServerHTTP struct {
Port int
}
ClientConfigServerHTTP holds the http server configuration.
type Generate ¶
type Generate struct {
// contains filtered or unexported fields
}
Generate the dynamic files to include custom handlers at the final build.
func NewGenerate ¶
func NewGenerate(cfg GenerateConfig) (Generate, error)
NewGenerate return the struct that will generate the dynamic code.
type GenerateConfig ¶
type GenerateConfig struct { Filesystem afero.Fs Handler []GenerateConfigHandler }
GenerateConfig has all the information needed to execute the generate.
type GenerateConfigHandler ¶
GenerateConfigHandler has the information needed to represent a handler.