Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultWorkspaceLimit = 10 MaxURLLength = 2048 )
Variables ¶
View Source
var ( ErrWorkspaceRequired = workspace.ErrRequired ErrInvalidURL = errors.New("goncho: invalid webhook url") ErrLimitReached = errors.New("goncho: maximum webhook endpoints reached for workspace") ErrNotFound = errors.New("goncho: webhook endpoint not found") )
Functions ¶
func NormalizeURL ¶
Types ¶
type CreateParams ¶
CreateParams carries endpoint creation inputs at the storage boundary.
type CreateResult ¶
CreateResult reports whether endpoint creation inserted a new row or reused an existing row.
func GetOrCreate ¶
func GetOrCreate(ctx context.Context, db *sql.DB, defaultWorkspaceID string, params CreateParams) (CreateResult, error)
Click to show internal directories.
Click to hide internal directories.