gsmgmailpostmaster

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package gsmgmailpostmaster implements the Gmail Postmaster APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDomain

func GetDomain(name, fields string) (*gmailpostmastertools.Domain, error)

GetDomain Gets a specific domain registered by the client. Returns NOT_FOUND if the domain does not exist.

func GetTrafficStats

func GetTrafficStats(name, fields string) (*gmailpostmastertools.TrafficStats, error)

GetTrafficStats Get traffic statistics for a domain on a specific date. Returns PERMISSION_DENIED if user does not have permission to access TrafficStats for the domain.

func ListDomains

func ListDomains(fields string, cap int) (<-chan *gmailpostmastertools.Domain, <-chan error)

ListDomains lists the domains that have been registered by the client. The order of domains in the response is unspecified and non-deterministic. Newly created domains will not necessarily be added to the end of this list.

func ListTrafficStats

func ListTrafficStats(parent, fields string, startDateDay, startDateMonth, startDateYear, endDateDay, endDateMonth, endDateYear int64, cap int) (<-chan *gmailpostmastertools.TrafficStats, <-chan error)

ListTrafficStats List traffic statistics for all available days. Returns PERMISSION_DENIED if user does not have permission to access TrafficStats for the domain.

func SetClient

func SetClient(c *http.Client)

SetClient is used to inject a *http.Client into the package

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL