github.com/whoyao/protocol@v0.0.0-20230519045905-2d8ace718ca5/webhook/consts.go (about)

     1  package webhook
     2  
     3  import "errors"
     4  
     5  var (
     6  	ErrNoAuthHeader    = errors.New("authorization header could not be found")
     7  	ErrSecretNotFound  = errors.New("API secret could not be found")
     8  	ErrInvalidChecksum = errors.New("could not verify authenticity of message")
     9  )
    10  
    11  const authHeader = "Authorization"
    12  
    13  const (
    14  	EventRoomStarted       = "room_started"
    15  	EventRoomFinished      = "room_finished"
    16  	EventParticipantJoined = "participant_joined"
    17  	EventParticipantLeft   = "participant_left"
    18  	EventTrackPublished    = "track_published"
    19  	EventTrackUnpublished  = "track_unpublished"
    20  	EventEgressStarted     = "egress_started"
    21  	EventEgressUpdated     = "egress_updated"
    22  	EventEgressEnded       = "egress_ended"
    23  	EventIngressStarted    = "ingress_started"
    24  	EventIngressEnded      = "ingress_ended"
    25  )