Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerType ¶
type ServerType string
const ( ServerTypeConnect ServerType = "connect" ServerTypeConnectCloud ServerType = "connect_cloud" ServerTypeSnowflake ServerType = "snowflake" )
func ServerTypeFromURL ¶
func ServerTypeFromURL(urlStr string) (ServerType, error)
ServerTypeFromURL infers a server type from the server URL. For Posit-deployed servers (shinyapps.io, posit.cloud) or Snowflake, it returns the corresponding type. Otherwise, it assumes a Connect server.
Returns an error if the given URL is invalid.
func (ServerType) Description ¶
func (t ServerType) Description() string
func (ServerType) IsCloud ¶ added in v1.19.0
func (t ServerType) IsCloud() bool
func (ServerType) IsConnectLike ¶ added in v1.19.0
func (t ServerType) IsConnectLike() bool
Click to show internal directories.
Click to hide internal directories.