Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LCUProxy ¶
type LCUProxy struct { // The hostname and port of the LCU. LCUHost string // The authentication token of the LCU. AuthToken string // Indicates if the startup message should be shown DisableStartUpMessage bool // Indicates if CORS should be disabled. When this property is set to true. // The Proxy will respond with the Header (Access-Control-Allow-Origin: *) DisableCORS bool // Indicates that the certificate check should be disabled DisableCertCheck bool // contains filtered or unexported fields }
func CreateCustomProxy ¶
CreateCustomProxy creates a new reverse proxy which can be used to get rid of https or/and the self-signed certificate. Also, it can be used to disable cors for local web development
Other than the function CreateProxy this method doesn't call the lcu.FindLCUConnectInfo function but depends on the specific auth-token and port
func CreateProxy ¶
CreateProxy creates a new reverse proxy which can be used to get rid of https or/and the self-signed certificate. Also, it can be used to disable cors for local web development
This function calls internally the lcu.FindLCUConnectInfo to retrieve the auth-token and port of the LCU.
func (*LCUProxy) ListenAndServe ¶
ListenAndServe Starts the proxy and waits for incoming requests.
To disable the startup message set DisableStartupMessage to true in the LCUProxy struct