Documentation ¶
Index ¶
- Constants
- func NewGraphQLClientWithToken(token string) *graphql.Client
- func NewSubscriptionClient(token string) *graphql.SubscriptionClient
- type Client
- func (c *Client) CreateProject(ctx context.Context, region string, name *string) (*model.Project, error)
- func (c *Client) DeleteProject(ctx context.Context, id string) error
- func (c *Client) GetProject(ctx context.Context, projectID string) (*model.Project, error)
- func (c *Client) GetProjectByOwnerAndName(ctx context.Context, owner, name string) (*model.Project, error)
- type ObjectID
Constants ¶
View Source
const ( ZeaburServerURL = "https://gateway.zeabur.com" WebsocketURL = "wss://gateway.zeabur.com" )
View Source
const ( ZeaburHTTPAPIEndpoint = "https://gateway.zeabur.com/api/v1" ZeaburGraphQLAPIEndpoint = ZeaburServerURL + "/graphql" WSSZeaburGraphQLAPIEndpoint = WebsocketURL + "/graphql" )
Variables ¶
This section is empty.
Functions ¶
func NewGraphQLClientWithToken ¶
func NewGraphQLClientWithToken(token string) *graphql.Client
NewGraphQLClientWithToken returns a new GraphQL client with the given token.
func NewSubscriptionClient ¶
func NewSubscriptionClient(token string) *graphql.SubscriptionClient
Types ¶
type Client ¶
type Client struct { *graphql.Client // contains filtered or unexported fields }
func (*Client) CreateProject ¶
func (*Client) DeleteProject ¶
DeleteProject deletes a project by its ID.
func (*Client) GetProject ¶
Click to show internal directories.
Click to hide internal directories.