Versions in this module Expand all Collapse all v0 v0.2.0 Sep 2, 2026 Changes in this version + func Bool(value bool) param.Field[bool] + func DefaultClientOptions() []option.RequestOption + func F[T any](value T) param.Field[T] + func FileParam(reader io.Reader, filename string, contentType string) param.Field[io.Reader] + func Float(value float64) param.Field[float64] + func Int(value int64) param.Field[int64] + func Null[T any]() param.Field[T] + func Raw[T any](value any) param.Field[T] + func String(value string) param.Field[string] + type AccountService struct + Options []option.RequestOption + func NewAccountService(opts ...option.RequestOption) (r *AccountService) + func (r *AccountService) List(ctx context.Context, opts ...option.RequestOption) (err error) + func (r *AccountService) ListToken(ctx context.Context, opts ...option.RequestOption) (err error) + type Client struct + Account *AccountService + Events *EventService + Milestones *MilestoneService + Options []option.RequestOption + Reports *ReportService + Sites *SiteService + func NewClient(opts ...option.RequestOption) (r *Client) + func (r *Client) Delete(ctx context.Context, path string, params interface{}, res interface{}, ...) error + func (r *Client) Execute(ctx context.Context, method string, path string, params interface{}, ...) error + func (r *Client) Get(ctx context.Context, path string, params interface{}, res interface{}, ...) error + func (r *Client) Patch(ctx context.Context, path string, params interface{}, res interface{}, ...) error + func (r *Client) Post(ctx context.Context, path string, params interface{}, res interface{}, ...) error + func (r *Client) Put(ctx context.Context, path string, params interface{}, res interface{}, ...) error + type Error = apierror.Error + type EventDeleteByNameParams struct + Name param.Field[string] + func (r EventDeleteByNameParams) URLQuery() (v url.Values) + type EventListParams struct + EndingBefore param.Field[string] + Limit param.Field[int64] + StartingAfter param.Field[string] + func (r EventListParams) URLQuery() (v url.Values) + type EventNewParams struct + Currency param.Field[EventNewParamsCurrency] + Name param.Field[string] + func (r EventNewParams) MarshalJSON() (data []byte, err error) + type EventNewParamsCurrency string + const EventNewParamsCurrencyDollar + const EventNewParamsCurrencyEuro + const EventNewParamsCurrencyFranc + const EventNewParamsCurrencyHryvnia + const EventNewParamsCurrencyInteger + const EventNewParamsCurrencyNone + const EventNewParamsCurrencyPeso + const EventNewParamsCurrencyPound + const EventNewParamsCurrencyRupee + const EventNewParamsCurrencyShekel + const EventNewParamsCurrencyWon + const EventNewParamsCurrencyYen + const EventNewParamsCurrencyYuan + func (r EventNewParamsCurrency) IsKnown() bool + type EventService struct + Options []option.RequestOption + func NewEventService(opts ...option.RequestOption) (r *EventService) + func (r *EventService) Delete(ctx context.Context, siteID string, eventID string, ...) (err error) + func (r *EventService) DeleteByName(ctx context.Context, siteID string, body EventDeleteByNameParams, ...) (err error) + func (r *EventService) Get(ctx context.Context, siteID string, eventID string, ...) (err error) + func (r *EventService) List(ctx context.Context, siteID string, query EventListParams, ...) (err error) + func (r *EventService) New(ctx context.Context, siteID string, body EventNewParams, ...) (err error) + func (r *EventService) SetCurrency(ctx context.Context, siteID string, body EventSetCurrencyParams, ...) (err error) + func (r *EventService) Update(ctx context.Context, siteID string, eventID string, body EventUpdateParams, ...) (err error) + func (r *EventService) Wipe(ctx context.Context, siteID string, eventID string, ...) (err error) + type EventSetCurrencyParams struct + Currency param.Field[EventSetCurrencyParamsCurrency] + Name param.Field[string] + func (r EventSetCurrencyParams) MarshalJSON() (data []byte, err error) + type EventSetCurrencyParamsCurrency string + const EventSetCurrencyParamsCurrencyDollar + const EventSetCurrencyParamsCurrencyEuro + const EventSetCurrencyParamsCurrencyFranc + const EventSetCurrencyParamsCurrencyHryvnia + const EventSetCurrencyParamsCurrencyInteger + const EventSetCurrencyParamsCurrencyNone + const EventSetCurrencyParamsCurrencyPeso + const EventSetCurrencyParamsCurrencyPound + const EventSetCurrencyParamsCurrencyRupee + const EventSetCurrencyParamsCurrencyShekel + const EventSetCurrencyParamsCurrencyWon + const EventSetCurrencyParamsCurrencyYen + const EventSetCurrencyParamsCurrencyYuan + func (r EventSetCurrencyParamsCurrency) IsKnown() bool + type EventUpdateParams struct + Currency param.Field[EventUpdateParamsCurrency] + Name param.Field[string] + func (r EventUpdateParams) MarshalJSON() (data []byte, err error) + type EventUpdateParamsCurrency string + const EventUpdateParamsCurrencyDollar + const EventUpdateParamsCurrencyEuro + const EventUpdateParamsCurrencyFranc + const EventUpdateParamsCurrencyHryvnia + const EventUpdateParamsCurrencyInteger + const EventUpdateParamsCurrencyNone + const EventUpdateParamsCurrencyPeso + const EventUpdateParamsCurrencyPound + const EventUpdateParamsCurrencyRupee + const EventUpdateParamsCurrencyShekel + const EventUpdateParamsCurrencyWon + const EventUpdateParamsCurrencyYen + const EventUpdateParamsCurrencyYuan + func (r EventUpdateParamsCurrency) IsKnown() bool + type MilestoneListParams struct + EndingBefore param.Field[string] + Limit param.Field[int64] + StartingAfter param.Field[string] + func (r MilestoneListParams) URLQuery() (v url.Values) + type MilestoneNewParams struct + MilestoneDate param.Field[string] + Name param.Field[string] + func (r MilestoneNewParams) MarshalJSON() (data []byte, err error) + type MilestoneService struct + Options []option.RequestOption + func NewMilestoneService(opts ...option.RequestOption) (r *MilestoneService) + func (r *MilestoneService) Delete(ctx context.Context, siteID string, milestoneID string, ...) (err error) + func (r *MilestoneService) Get(ctx context.Context, siteID string, milestoneID string, ...) (err error) + func (r *MilestoneService) List(ctx context.Context, siteID string, query MilestoneListParams, ...) (err error) + func (r *MilestoneService) New(ctx context.Context, siteID string, body MilestoneNewParams, ...) (err error) + func (r *MilestoneService) Update(ctx context.Context, siteID string, milestoneID string, ...) (err error) + type MilestoneUpdateParams struct + MilestoneDate param.Field[string] + Name param.Field[string] + func (r MilestoneUpdateParams) MarshalJSON() (data []byte, err error) + type ReportAggregationParams struct + Aggregates param.Field[string] + DateFrom param.Field[string] + DateGrouping param.Field[ReportAggregationParamsDateGrouping] + DateTo param.Field[string] + Entity param.Field[ReportAggregationParamsEntity] + EntityID param.Field[string] + EntityName param.Field[string] + FieldGrouping param.Field[string] + Filters param.Field[string] + Limit param.Field[int64] + SiteID param.Field[string] + SortBy param.Field[string] + Timezone param.Field[string] + func (r ReportAggregationParams) URLQuery() (v url.Values) + type ReportAggregationParamsDateGrouping string + const ReportAggregationParamsDateGroupingDay + const ReportAggregationParamsDateGroupingHour + const ReportAggregationParamsDateGroupingMonth + const ReportAggregationParamsDateGroupingYear + func (r ReportAggregationParamsDateGrouping) IsKnown() bool + type ReportAggregationParamsEntity string + const ReportAggregationParamsEntityEvent + const ReportAggregationParamsEntityPageview + func (r ReportAggregationParamsEntity) IsKnown() bool + type ReportCurrentVisitorsParams struct + Detailed param.Field[bool] + SiteID param.Field[string] + func (r ReportCurrentVisitorsParams) URLQuery() (v url.Values) + type ReportService struct + Options []option.RequestOption + func NewReportService(opts ...option.RequestOption) (r *ReportService) + func (r *ReportService) Aggregation(ctx context.Context, query ReportAggregationParams, ...) (err error) + func (r *ReportService) CurrentVisitors(ctx context.Context, query ReportCurrentVisitorsParams, ...) (err error) + type SiteListParams struct + EndingBefore param.Field[string] + Limit param.Field[int64] + StartingAfter param.Field[string] + func (r SiteListParams) URLQuery() (v url.Values) + type SiteNewParams struct + MultiDomain param.Field[bool] + MultiDomainOption param.Field[SiteNewParamsMultiDomainOption] + Name param.Field[string] + SharePassword param.Field[string] + Sharing param.Field[SiteNewParamsSharing] + Timezone param.Field[string] + func (r SiteNewParams) MarshalJSON() (data []byte, err error) + type SiteNewParamsMultiDomainOption string + const SiteNewParamsMultiDomainOptionCombined + const SiteNewParamsMultiDomainOptionSeparate + func (r SiteNewParamsMultiDomainOption) IsKnown() bool + type SiteNewParamsSharing string + const SiteNewParamsSharingNone + const SiteNewParamsSharingPrivate + const SiteNewParamsSharingPublic + func (r SiteNewParamsSharing) IsKnown() bool + type SiteService struct + Options []option.RequestOption + func NewSiteService(opts ...option.RequestOption) (r *SiteService) + func (r *SiteService) Delete(ctx context.Context, siteID string, opts ...option.RequestOption) (err error) + func (r *SiteService) Get(ctx context.Context, siteID string, opts ...option.RequestOption) (err error) + func (r *SiteService) List(ctx context.Context, query SiteListParams, opts ...option.RequestOption) (err error) + func (r *SiteService) New(ctx context.Context, body SiteNewParams, opts ...option.RequestOption) (err error) + func (r *SiteService) Update(ctx context.Context, siteID string, body SiteUpdateParams, ...) (err error) + func (r *SiteService) Wipe(ctx context.Context, siteID string, opts ...option.RequestOption) (err error) + type SiteUpdateParams struct + MultiDomain param.Field[bool] + MultiDomainOption param.Field[SiteUpdateParamsMultiDomainOption] + Name param.Field[string] + SharePassword param.Field[string] + Sharing param.Field[SiteUpdateParamsSharing] + Timezone param.Field[string] + func (r SiteUpdateParams) MarshalJSON() (data []byte, err error) + type SiteUpdateParamsMultiDomainOption string + const SiteUpdateParamsMultiDomainOptionCombined + const SiteUpdateParamsMultiDomainOptionSeparate + func (r SiteUpdateParamsMultiDomainOption) IsKnown() bool + type SiteUpdateParamsSharing string + const SiteUpdateParamsSharingNone + const SiteUpdateParamsSharingPrivate + const SiteUpdateParamsSharingPublic + func (r SiteUpdateParamsSharing) IsKnown() bool