get_oncall

package
v0.0.0-...-36ae4ea Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context) (*Client, error)

func (*Client) GetOncall

func (c *Client) GetOncall(w http.ResponseWriter, r *http.Request)

KGSearch uses the Knowledge Graph API to search for a query provided by a Slack command.

func (*Client) StartServer

func (c *Client) StartServer()

type Config

type Config struct {
	Port string `envconfig:"PORT" default:"8080"`

	PagerDutyAPIKey string `envconfig:"PD_API_KEY" required:"true"`
	SlackAPIKey     string `envconfig:"SLACK_API_KEY" required:"true"`
	SlackSecret     string `envconfig:"SLACK_SECRET" required:"true"`
}

Jump to

Keyboard shortcuts

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