Documentation
¶
Overview ¶
Package fcmtest is a fake FCM endpoint for tests (HTTP v1 sends and Instance ID subscriptions): it records what it receives and answers by rules on the target.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TokenSource ¶
func TokenSource() oauth2.TokenSource
TokenSource is a static token for the fake.
Types ¶
type Answer ¶
type Answer struct {
Status int
Code string
Message string
RetryAfter string
// Times: answer this many times, then accept; 0: always.
Times int
}
Answer is how the server responds to a token or topic.
Click to show internal directories.
Click to hide internal directories.