Documentation ¶
Index ¶
- func EncodePublicKey(key *ephemeral.EphemeralKey) string
- func EncodeTopicIdentityMessage(topic string, data proto.Message) ([]byte, error)
- func EncodeTopicMessage(topic string, data proto.Message) ([]byte, error)
- func ExecuteAuthFlow(auth0 *Auth0, auth *Auth) (string, error)
- func ReadEphemeralKeyFromFile(path string) (*ephemeral.EphemeralKey, error)
- func StartBot(options *BotOptions)
- type Auth
- type Auth0
- type BotOptions
- type ClientAuthenticator
- type ProfileClient
- type V3
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodePublicKey ¶
func EncodePublicKey(key *ephemeral.EphemeralKey) string
func ReadEphemeralKeyFromFile ¶
func ReadEphemeralKeyFromFile(path string) (*ephemeral.EphemeralKey, error)
func StartBot ¶
func StartBot(options *BotOptions)
Types ¶
type Auth0 ¶
type Auth0 struct { Domain string Email string Password string ClientID string ClientSecret string Audience string }
func (*Auth0) GetUserToken ¶
type BotOptions ¶
type BotOptions struct { Auth authentication.ClientAuthenticator CoordinatorURL string Checkpoints []V3 DurationMs uint Log zerolog.Logger TrackStats bool }
type ClientAuthenticator ¶
type ClientAuthenticator struct { IdentityURL string EphemeralKey *ephemeral.EphemeralKey Email string Password string Auth0Domain string Auth0ClientID string Auth0ClientSecret string Auth0Audience string // contains filtered or unexported fields }
func (*ClientAuthenticator) GenerateClientAuthMessage ¶
func (a *ClientAuthenticator) GenerateClientAuthMessage() (*broker.AuthMessage, error)
func (*ClientAuthenticator) GenerateClientConnectURL ¶
func (a *ClientAuthenticator) GenerateClientConnectURL(coordinatorURL string) (string, error)
type ProfileClient ¶
type ProfileClient struct { ProfileURL string EphemeralKey *ephemeral.EphemeralKey }
func (*ProfileClient) RetrieveProfile ¶
func (pc *ProfileClient) RetrieveProfile(accessToken string) (map[string]interface{}, error)
func (*ProfileClient) StoreProfile ¶
func (pc *ProfileClient) StoreProfile(accessToken string, body io.Reader) error
Click to show internal directories.
Click to hide internal directories.