Documentation ¶
Index ¶
- Constants
- Variables
- func CreateLogDrain(ctx context.Context, vercelTeamID *string, vercelProjectIDs []string, ...) error
- func GetProjects(accessToken string, teamId *string) ([]*privateModel.VercelProject, error)
- func HandleLog(w http.ResponseWriter, r *http.Request)
- func Listen(r *chi.Mux, t trace.Tracer)
- func RemoveConfiguration(configId string, accessToken string, teamId *string) error
- func RemoveLogDrain(logDrainId string, accessToken string, teamId *string) error
- func RemoveLogDrains(ctx context.Context, vercelTeamID *string, accessToken string) error
- func SetEnvVariable(projectId string, apiKey string, accessToken string, teamId *string, ...) error
- type VercelAccessTokenResponse
Constants ¶
View Source
const ( SourcemapEnvKey = "HIGHLIGHT_SOURCEMAP_UPLOAD_API_KEY" ProjectIdEnvVar = "NEXT_PUBLIC_HIGHLIGHT_PROJECT_ID" )
Variables ¶
View Source
var (
ApiBaseUrl = "https://api.vercel.com"
)
Functions ¶
func CreateLogDrain ¶
func GetProjects ¶
func GetProjects(accessToken string, teamId *string) ([]*privateModel.VercelProject, error)
func RemoveConfiguration ¶
func RemoveLogDrain ¶
func RemoveLogDrains ¶
Types ¶
type VercelAccessTokenResponse ¶
type VercelAccessTokenResponse struct { AccessToken string `json:"access_token"` TeamID *string `json:"team_id"` }
func GetAccessToken ¶
func GetAccessToken(code string) (VercelAccessTokenResponse, error)
Click to show internal directories.
Click to hide internal directories.