server_type

package
v1.23.9 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 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

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

Jump to

Keyboard shortcuts

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