github.com/argoproj/argo-events@v1.9.1/eventbus/common/structs.go (about) 1 package common 2 3 import ( 4 eventbusv1alpha1 "github.com/argoproj/argo-events/pkg/apis/eventbus/v1alpha1" 5 ) 6 7 // Auth contains the auth infor for event bus 8 type Auth struct { 9 Strategy eventbusv1alpha1.AuthStrategy 10 Credential *AuthCredential 11 } 12 13 // AuthCredential host the credential info 14 type AuthCredential struct { 15 Token string 16 Username string 17 Password string 18 } 19 20 type MsgHeader struct { 21 EventSourceName string 22 EventName string 23 ID string 24 } 25 26 type Message struct { 27 MsgHeader 28 Body []byte 29 } 30 31 // Dependency is a struct for dependency info of a sensor 32 type Dependency struct { 33 Name string 34 EventSourceName string 35 EventName string 36 }