entities

package
v0.0.0-...-92b9631 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdAccount

type AdAccount struct {
	AccountID string `json:"account_id"`
	ID        string `json:"id"`
	Name      string `json:"name"`
	Currency  string `json:"currency"`
}

AdAccount struct is a facebook ad account data

type Campaign

type Campaign struct {
	ID        string                `json:"id"`
	Budget    string                `json:"budget"`
	StartTime string                `json:"start_time"`
	EndTime   string                `json:"end_time"`
	Targeting []*genetic.Chromosome `json:"targeting"`
	Media     []Media               `json:"media"`
}

Campaign object represent a Trinacia campaign

type Cookie struct {
	ID             string `json:"id"`
	IP             string `json:"ip"`
	DeviceID       string `json:"device_id"`
	CreationTime   string `json:"creation_time"`
	LastAccessTime string `json:"last_access"`
	UserID         string `json:"user_id"`
	Persona        string `json:"persona"`
	Company        string `json:"company"`
}

Cookie information of website user

type Facebook

type Facebook struct {
	ID          string      `json:"id"`
	Pages       []Page      `json:"pages"`
	AdAccounts  []AdAccount `json:"ad_accounts"`
	AccessToken string      `json:"access_token"`
}

Facebook information related to user

type Instagram

type Instagram struct {
	ID   string `json:"id"`
	Name string `json:"username"`
}

Instagram page data

type Media

type Media struct {
	Title     string `json:"title,omitempty"`
	Body      string `json:"body,omitempty"`
	VideoID   string `json:"video_id,omitempty"`
	URL       string `json:"url,omitempty"`
	ImageHash string `json:"image_hash,omitempty"`
}

Media used in the campaign

type Page

type Page struct {
	Category    string      `json:"category"`
	Name        string      `json:"name"`
	ID          string      `json:"id"`
	Instagram   []Instagram `json:"instagram,omitempty"`
	AccessToken string      `json:"access_token"`
}

Page information about a facebook page

type Payment

type Payment struct {
	BillingToken     string `json:"billing_token"`
	FacilitatorToken string `json:"facilitator_token"`
	OrderID          string `json:"order_id"`
	SubscritionID    string `json:"subscription_id"`
}

Payment struct contains information on validated payment

type User

type User struct {
	ID           string `json:"id"`
	Name         string `json:"name"`
	Email        string `json:"email"`
	CreationTime string `json:"creation_time"`
}

User is a trinacia user

Jump to

Keyboard shortcuts

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