server_type

package
v1.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2025 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL