Versions in this module Expand all Collapse all v4 v4.1.2 Nov 6, 2020 Changes in this version + var FirebaseScopes = []string + var SystemClock = &systemClock + func HasPlatformErrorCode(err error, code ErrorCode) bool + func HasSuccessStatus(r *Response) bool + type AuthConfig struct + Opts []option.ClientOption + ProjectID string + ServiceAccountID string + Version string + type Clock interface + Now func() time.Time + type CreateErrFn func(r *Response) error + type DatabaseConfig struct + AuthOverride map[string]interface{} + Opts []option.ClientOption + URL string + Version string + type ErrorCode string + const Aborted + const AlreadyExists + const Cancelled + const Conflict + const DataLoss + const DeadlineExceeded + const FailedPrecondition + const Internal + const InvalidArgument + const NotFound + const OutOfRange + const PermissionDenied + const ResourceExhausted + const Unauthenticated + const Unavailable + const Unknown + type FirebaseError struct + ErrorCode ErrorCode + Ext map[string]interface{} + Response *http.Response + String string + func NewFirebaseError(resp *Response) *FirebaseError + func NewFirebaseErrorOnePlatform(resp *Response) *FirebaseError + func (fe *FirebaseError) Error() string + type HTTPClient struct + Client *http.Client + CreateErrFn CreateErrFn + Opts []HTTPOption + RetryConfig *RetryConfig + SuccessFn SuccessFn + func NewHTTPClient(ctx context.Context, opts ...option.ClientOption) (*HTTPClient, string, error) + func WithDefaultRetryConfig(hc *http.Client) *HTTPClient + func (c *HTTPClient) Do(ctx context.Context, req *Request) (*Response, error) + func (c *HTTPClient) DoAndUnmarshal(ctx context.Context, req *Request, v interface{}) (*Response, error) + type HTTPEntity interface + Bytes func() ([]byte, error) + Mime func() string + func NewJSONEntity(v interface{}) HTTPEntity + type HTTPOption func(*http.Request) + func WithHeader(key, value string) HTTPOption + func WithQueryParam(key, value string) HTTPOption + func WithQueryParams(qp map[string]string) HTTPOption + type HashConfig map[string]interface + type InstanceIDConfig struct + Opts []option.ClientOption + ProjectID string + type MessagingConfig struct + Opts []option.ClientOption + ProjectID string + Version string + type MockClock struct + Timestamp time.Time + func (m *MockClock) Now() time.Time + type MockTokenSource struct + AccessToken string + func (ts *MockTokenSource) Token() (*oauth2.Token, error) + type Request struct + Body HTTPEntity + CreateErrFn CreateErrFn + Method string + Opts []HTTPOption + SuccessFn SuccessFn + URL string + type Response struct + Body []byte + Header http.Header + Status int + func (r *Response) LowLevelResponse() *http.Response + type RetryCondition func(resp *http.Response, networkErr error) bool + type RetryConfig struct + CheckForRetry RetryCondition + ExpBackoffFactor float64 + MaxDelay *time.Duration + MaxRetries int + type StorageConfig struct + Bucket string + Opts []option.ClientOption + type SuccessFn func(r *Response) bool Other modules containing this package github.com/sonatard/firebase-admin-go