id
int32
0
167k
repo
stringlengths
5
54
path
stringlengths
4
155
func_name
stringlengths
1
118
original_string
stringlengths
52
85.5k
language
stringclasses
1 value
code
stringlengths
52
85.5k
code_tokens
listlengths
21
1.41k
docstring
stringlengths
6
2.61k
docstring_tokens
listlengths
3
215
sha
stringlengths
40
40
url
stringlengths
85
252
138,300
projecteru2/core
auth/auth.go
NewCredential
func NewCredential(auth types.AuthConfig) Credential { // TODO 这里可以组装其他的方法 return simple.NewBasicCredential(auth.Username, auth.Password) }
go
func NewCredential(auth types.AuthConfig) Credential { // TODO 这里可以组装其他的方法 return simple.NewBasicCredential(auth.Username, auth.Password) }
[ "func", "NewCredential", "(", "auth", "types", ".", "AuthConfig", ")", "Credential", "{", "// TODO 这里可以组装其他的方法", "return", "simple", ".", "NewBasicCredential", "(", "auth", ".", "Username", ",", "auth", ".", "Password", ")", "\n", "}" ]
// NewCredential return credential obj
[ "NewCredential", "return", "credential", "obj" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/auth/auth.go#L30-L33
138,301
projecteru2/core
cluster/calcium/resource.go
PodResource
func (c *Calcium) PodResource(ctx context.Context, podname string) (*types.PodResource, error) { nodes, err := c.ListPodNodes(ctx, podname, true) if err != nil { return nil, err } r := &types.PodResource{ Name: podname, CPUPercent: map[string]float64{}, MEMPercent: map[string]float64{}, Diff: ...
go
func (c *Calcium) PodResource(ctx context.Context, podname string) (*types.PodResource, error) { nodes, err := c.ListPodNodes(ctx, podname, true) if err != nil { return nil, err } r := &types.PodResource{ Name: podname, CPUPercent: map[string]float64{}, MEMPercent: map[string]float64{}, Diff: ...
[ "func", "(", "c", "*", "Calcium", ")", "PodResource", "(", "ctx", "context", ".", "Context", ",", "podname", "string", ")", "(", "*", "types", ".", "PodResource", ",", "error", ")", "{", "nodes", ",", "err", ":=", "c", ".", "ListPodNodes", "(", "ctx"...
// PodResource show pod resource usage
[ "PodResource", "show", "pod", "resource", "usage" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/cluster/calcium/resource.go#L20-L67
138,302
projecteru2/core
utils/cache.go
Set
func (c *Cache) Set(host string, client engine.API) { c.Lock() defer c.Unlock() c.Clients[host] = client }
go
func (c *Cache) Set(host string, client engine.API) { c.Lock() defer c.Unlock() c.Clients[host] = client }
[ "func", "(", "c", "*", "Cache", ")", "Set", "(", "host", "string", ",", "client", "engine", ".", "API", ")", "{", "c", ".", "Lock", "(", ")", "\n", "defer", "c", ".", "Unlock", "(", ")", "\n", "c", ".", "Clients", "[", "host", "]", "=", "clie...
// Set connection with host
[ "Set", "connection", "with", "host" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/utils/cache.go#L17-L21
138,303
projecteru2/core
utils/cache.go
Get
func (c *Cache) Get(host string) engine.API { c.Lock() defer c.Unlock() return c.Clients[host] }
go
func (c *Cache) Get(host string) engine.API { c.Lock() defer c.Unlock() return c.Clients[host] }
[ "func", "(", "c", "*", "Cache", ")", "Get", "(", "host", "string", ")", "engine", ".", "API", "{", "c", ".", "Lock", "(", ")", "\n", "defer", "c", ".", "Unlock", "(", ")", "\n", "return", "c", ".", "Clients", "[", "host", "]", "\n", "}" ]
// Get connection by host
[ "Get", "connection", "by", "host" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/utils/cache.go#L24-L28
138,304
projecteru2/core
utils/cache.go
Delete
func (c *Cache) Delete(host string) { c.Lock() defer c.Unlock() delete(c.Clients, host) }
go
func (c *Cache) Delete(host string) { c.Lock() defer c.Unlock() delete(c.Clients, host) }
[ "func", "(", "c", "*", "Cache", ")", "Delete", "(", "host", "string", ")", "{", "c", ".", "Lock", "(", ")", "\n", "defer", "c", ".", "Unlock", "(", ")", "\n", "delete", "(", "c", ".", "Clients", ",", "host", ")", "\n", "}" ]
// Delete connection by host
[ "Delete", "connection", "by", "host" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/utils/cache.go#L31-L35
138,305
projecteru2/core
lock/etcdlock/mutex.go
New
func New(cli *clientv3.Client, key string, ttl int) (*Mutex, error) { if key == "" { return nil, types.ErrKeyIsEmpty } if !strings.HasPrefix(key, "/") { key = fmt.Sprintf("/%s", key) } session, err := concurrency.NewSession(cli, concurrency.WithTTL(ttl)) if err != nil { return nil, err } mutex := &Mute...
go
func New(cli *clientv3.Client, key string, ttl int) (*Mutex, error) { if key == "" { return nil, types.ErrKeyIsEmpty } if !strings.HasPrefix(key, "/") { key = fmt.Sprintf("/%s", key) } session, err := concurrency.NewSession(cli, concurrency.WithTTL(ttl)) if err != nil { return nil, err } mutex := &Mute...
[ "func", "New", "(", "cli", "*", "clientv3", ".", "Client", ",", "key", "string", ",", "ttl", "int", ")", "(", "*", "Mutex", ",", "error", ")", "{", "if", "key", "==", "\"", "\"", "{", "return", "nil", ",", "types", ".", "ErrKeyIsEmpty", "\n", "}"...
// New new a lock
[ "New", "new", "a", "lock" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/lock/etcdlock/mutex.go#L22-L39
138,306
projecteru2/core
lock/etcdlock/mutex.go
Lock
func (m *Mutex) Lock(ctx context.Context) error { lockCtx, cancel := context.WithTimeout(ctx, m.timeout) defer cancel() return m.mutex.Lock(lockCtx) }
go
func (m *Mutex) Lock(ctx context.Context) error { lockCtx, cancel := context.WithTimeout(ctx, m.timeout) defer cancel() return m.mutex.Lock(lockCtx) }
[ "func", "(", "m", "*", "Mutex", ")", "Lock", "(", "ctx", "context", ".", "Context", ")", "error", "{", "lockCtx", ",", "cancel", ":=", "context", ".", "WithTimeout", "(", "ctx", ",", "m", ".", "timeout", ")", "\n", "defer", "cancel", "(", ")", "\n"...
// Lock get locked
[ "Lock", "get", "locked" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/lock/etcdlock/mutex.go#L42-L46
138,307
projecteru2/core
store/etcdv3/deploy.go
MakeDeployStatus
func (m *Mercury) MakeDeployStatus(ctx context.Context, opts *types.DeployOptions, nodesInfo []types.NodeInfo) ([]types.NodeInfo, error) { // 手动加 / 防止不精确 key := filepath.Join(containerDeployPrefix, opts.Name, opts.Entrypoint.Name) + "/" resp, err := m.Get(ctx, key, clientv3.WithPrefix(), clientv3.WithKeysOnly()) if...
go
func (m *Mercury) MakeDeployStatus(ctx context.Context, opts *types.DeployOptions, nodesInfo []types.NodeInfo) ([]types.NodeInfo, error) { // 手动加 / 防止不精确 key := filepath.Join(containerDeployPrefix, opts.Name, opts.Entrypoint.Name) + "/" resp, err := m.Get(ctx, key, clientv3.WithPrefix(), clientv3.WithKeysOnly()) if...
[ "func", "(", "m", "*", "Mercury", ")", "MakeDeployStatus", "(", "ctx", "context", ".", "Context", ",", "opts", "*", "types", ".", "DeployOptions", ",", "nodesInfo", "[", "]", "types", ".", "NodeInfo", ")", "(", "[", "]", "types", ".", "NodeInfo", ",", ...
// MakeDeployStatus get deploy status from store
[ "MakeDeployStatus", "get", "deploy", "status", "from", "store" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/store/etcdv3/deploy.go#L14-L30
138,308
projecteru2/core
engine/docker/exec.go
ExecCreate
func (e *Engine) ExecCreate(ctx context.Context, target string, config *enginetypes.ExecConfig) (string, error) { execConfig := dockertypes.ExecConfig{ User: config.User, Cmd: config.Cmd, Privileged: config.Privileged, Env: config.Env, AttachStderr: config.AttachStderr, AttachSt...
go
func (e *Engine) ExecCreate(ctx context.Context, target string, config *enginetypes.ExecConfig) (string, error) { execConfig := dockertypes.ExecConfig{ User: config.User, Cmd: config.Cmd, Privileged: config.Privileged, Env: config.Env, AttachStderr: config.AttachStderr, AttachSt...
[ "func", "(", "e", "*", "Engine", ")", "ExecCreate", "(", "ctx", "context", ".", "Context", ",", "target", "string", ",", "config", "*", "enginetypes", ".", "ExecConfig", ")", "(", "string", ",", "error", ")", "{", "execConfig", ":=", "dockertypes", ".", ...
// ExecCreate create a exec
[ "ExecCreate", "create", "a", "exec" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/engine/docker/exec.go#L12-L29
138,309
projecteru2/core
engine/docker/exec.go
ExecAttach
func (e *Engine) ExecAttach(ctx context.Context, execID string, detach, tty bool) (io.ReadCloser, error) { resp, err := e.client.ContainerExecAttach(ctx, execID, dockertypes.ExecStartCheck{}) if err != nil { return nil, err } return FuckDockerStream(resp), nil }
go
func (e *Engine) ExecAttach(ctx context.Context, execID string, detach, tty bool) (io.ReadCloser, error) { resp, err := e.client.ContainerExecAttach(ctx, execID, dockertypes.ExecStartCheck{}) if err != nil { return nil, err } return FuckDockerStream(resp), nil }
[ "func", "(", "e", "*", "Engine", ")", "ExecAttach", "(", "ctx", "context", ".", "Context", ",", "execID", "string", ",", "detach", ",", "tty", "bool", ")", "(", "io", ".", "ReadCloser", ",", "error", ")", "{", "resp", ",", "err", ":=", "e", ".", ...
// ExecAttach attach a exec
[ "ExecAttach", "attach", "a", "exec" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/engine/docker/exec.go#L32-L38
138,310
projecteru2/core
engine/docker/exec.go
ExecExitCode
func (e *Engine) ExecExitCode(ctx context.Context, execID string) (int, error) { r, err := e.client.ContainerExecInspect(ctx, execID) if err != nil { return -1, err } return r.ExitCode, nil }
go
func (e *Engine) ExecExitCode(ctx context.Context, execID string) (int, error) { r, err := e.client.ContainerExecInspect(ctx, execID) if err != nil { return -1, err } return r.ExitCode, nil }
[ "func", "(", "e", "*", "Engine", ")", "ExecExitCode", "(", "ctx", "context", ".", "Context", ",", "execID", "string", ")", "(", "int", ",", "error", ")", "{", "r", ",", "err", ":=", "e", ".", "client", ".", "ContainerExecInspect", "(", "ctx", ",", ...
// ExecExitCode get exec return code
[ "ExecExitCode", "get", "exec", "return", "code" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/engine/docker/exec.go#L41-L47
138,311
projecteru2/core
source/github/manganese.go
New
func New(config types.Config) *common.GitScm { gitConfig := config.Git token := fmt.Sprintf("token %s", gitConfig.Token) authheaders := map[string]string{} authheaders["Authorization"] = token return &common.GitScm{Config: gitConfig, AuthHeaders: authheaders} }
go
func New(config types.Config) *common.GitScm { gitConfig := config.Git token := fmt.Sprintf("token %s", gitConfig.Token) authheaders := map[string]string{} authheaders["Authorization"] = token return &common.GitScm{Config: gitConfig, AuthHeaders: authheaders} }
[ "func", "New", "(", "config", "types", ".", "Config", ")", "*", "common", ".", "GitScm", "{", "gitConfig", ":=", "config", ".", "Git", "\n", "token", ":=", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "gitConfig", ".", "Token", ")", "\n", "authheader...
// New new a github obj
[ "New", "new", "a", "github", "obj" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/source/github/manganese.go#L11-L17
138,312
projecteru2/core
engine/docker/docker.go
MakeRawClient
func MakeRawClient(config coretypes.Config, client *http.Client, endpoint, apiversion string) (*Engine, error) { cli, err := dockerapi.NewClient(endpoint, apiversion, client, nil) if err != nil { return nil, err } return &Engine{cli, config}, nil }
go
func MakeRawClient(config coretypes.Config, client *http.Client, endpoint, apiversion string) (*Engine, error) { cli, err := dockerapi.NewClient(endpoint, apiversion, client, nil) if err != nil { return nil, err } return &Engine{cli, config}, nil }
[ "func", "MakeRawClient", "(", "config", "coretypes", ".", "Config", ",", "client", "*", "http", ".", "Client", ",", "endpoint", ",", "apiversion", "string", ")", "(", "*", "Engine", ",", "error", ")", "{", "cli", ",", "err", ":=", "dockerapi", ".", "Ne...
// MakeRawClient make raw docker cli
[ "MakeRawClient", "make", "raw", "docker", "cli" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/engine/docker/docker.go#L30-L36
138,313
projecteru2/core
engine/docker/docker.go
MakeRawClientWithTLS
func MakeRawClientWithTLS(config coretypes.Config, ca, cert, key *os.File, endpoint, apiversion string) (*Engine, error) { var client *http.Client options := tlsconfig.Options{ CAFile: ca.Name(), CertFile: cert.Name(), KeyFile: key.Name(), InsecureSkipVerify: true, } defer o...
go
func MakeRawClientWithTLS(config coretypes.Config, ca, cert, key *os.File, endpoint, apiversion string) (*Engine, error) { var client *http.Client options := tlsconfig.Options{ CAFile: ca.Name(), CertFile: cert.Name(), KeyFile: key.Name(), InsecureSkipVerify: true, } defer o...
[ "func", "MakeRawClientWithTLS", "(", "config", "coretypes", ".", "Config", ",", "ca", ",", "cert", ",", "key", "*", "os", ".", "File", ",", "endpoint", ",", "apiversion", "string", ")", "(", "*", "Engine", ",", "error", ")", "{", "var", "client", "*", ...
// MakeRawClientWithTLS make raw docker cli with TLS
[ "MakeRawClientWithTLS", "make", "raw", "docker", "cli", "with", "TLS" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/engine/docker/docker.go#L39-L61
138,314
projecteru2/core
engine/docker/docker.go
Info
func (e *Engine) Info(ctx context.Context) (*enginetypes.Info, error) { infoCtx, cancel := context.WithTimeout(ctx, 2*time.Second) defer cancel() r, err := e.client.Info(infoCtx) if err != nil { return nil, err } return &enginetypes.Info{ID: r.ID, NCPU: r.NCPU, MemTotal: r.MemTotal}, nil }
go
func (e *Engine) Info(ctx context.Context) (*enginetypes.Info, error) { infoCtx, cancel := context.WithTimeout(ctx, 2*time.Second) defer cancel() r, err := e.client.Info(infoCtx) if err != nil { return nil, err } return &enginetypes.Info{ID: r.ID, NCPU: r.NCPU, MemTotal: r.MemTotal}, nil }
[ "func", "(", "e", "*", "Engine", ")", "Info", "(", "ctx", "context", ".", "Context", ")", "(", "*", "enginetypes", ".", "Info", ",", "error", ")", "{", "infoCtx", ",", "cancel", ":=", "context", ".", "WithTimeout", "(", "ctx", ",", "2", "*", "time"...
// Info show node info // 2 seconds timeout // used to be 5, but client won't wait that long
[ "Info", "show", "node", "info", "2", "seconds", "timeout", "used", "to", "be", "5", "but", "client", "won", "t", "wait", "that", "long" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/engine/docker/docker.go#L66-L74
138,315
projecteru2/core
engine/docker/image.go
ImageList
func (e *Engine) ImageList(ctx context.Context, image string) ([]*enginetypes.Image, error) { image = normalizeImage(image) imgListFilter := dockerfilters.NewArgs() imgListFilter.Add("reference", image) // 相同 repo 的image images, err := e.client.ImageList(ctx, dockertypes.ImageListOptions{Filters: imgListFilter}) ...
go
func (e *Engine) ImageList(ctx context.Context, image string) ([]*enginetypes.Image, error) { image = normalizeImage(image) imgListFilter := dockerfilters.NewArgs() imgListFilter.Add("reference", image) // 相同 repo 的image images, err := e.client.ImageList(ctx, dockertypes.ImageListOptions{Filters: imgListFilter}) ...
[ "func", "(", "e", "*", "Engine", ")", "ImageList", "(", "ctx", "context", ".", "Context", ",", "image", "string", ")", "(", "[", "]", "*", "enginetypes", ".", "Image", ",", "error", ")", "{", "image", "=", "normalizeImage", "(", "image", ")", "\n", ...
// ImageList list image
[ "ImageList", "list", "image" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/engine/docker/image.go#L15-L34
138,316
projecteru2/core
engine/docker/image.go
ImageRemove
func (e *Engine) ImageRemove(ctx context.Context, image string, force, prune bool) ([]string, error) { opts := dockertypes.ImageRemoveOptions{ Force: force, PruneChildren: prune, } removed, err := e.client.ImageRemove(ctx, image, opts) r := []string{} if err != nil { return r, err } for _, item :...
go
func (e *Engine) ImageRemove(ctx context.Context, image string, force, prune bool) ([]string, error) { opts := dockertypes.ImageRemoveOptions{ Force: force, PruneChildren: prune, } removed, err := e.client.ImageRemove(ctx, image, opts) r := []string{} if err != nil { return r, err } for _, item :...
[ "func", "(", "e", "*", "Engine", ")", "ImageRemove", "(", "ctx", "context", ".", "Context", ",", "image", "string", ",", "force", ",", "prune", "bool", ")", "(", "[", "]", "string", ",", "error", ")", "{", "opts", ":=", "dockertypes", ".", "ImageRemo...
// ImageRemove remove a image
[ "ImageRemove", "remove", "a", "image" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/engine/docker/image.go#L37-L59
138,317
projecteru2/core
engine/docker/image.go
ImagesPrune
func (e *Engine) ImagesPrune(ctx context.Context) error { _, err := e.client.ImagesPrune(ctx, dockerfilters.NewArgs()) return err }
go
func (e *Engine) ImagesPrune(ctx context.Context) error { _, err := e.client.ImagesPrune(ctx, dockerfilters.NewArgs()) return err }
[ "func", "(", "e", "*", "Engine", ")", "ImagesPrune", "(", "ctx", "context", ".", "Context", ")", "error", "{", "_", ",", "err", ":=", "e", ".", "client", ".", "ImagesPrune", "(", "ctx", ",", "dockerfilters", ".", "NewArgs", "(", ")", ")", "\n", "re...
// ImagesPrune prune images
[ "ImagesPrune", "prune", "images" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/engine/docker/image.go#L62-L65
138,318
projecteru2/core
engine/docker/image.go
ImagePull
func (e *Engine) ImagePull(ctx context.Context, ref string, all bool) (io.ReadCloser, error) { auth, err := makeEncodedAuthConfigFromRemote(e.config.Docker.AuthConfigs, ref) if err != nil { return nil, err } pullOptions := dockertypes.ImagePullOptions{All: all, RegistryAuth: auth} return e.client.ImagePull(ctx, ...
go
func (e *Engine) ImagePull(ctx context.Context, ref string, all bool) (io.ReadCloser, error) { auth, err := makeEncodedAuthConfigFromRemote(e.config.Docker.AuthConfigs, ref) if err != nil { return nil, err } pullOptions := dockertypes.ImagePullOptions{All: all, RegistryAuth: auth} return e.client.ImagePull(ctx, ...
[ "func", "(", "e", "*", "Engine", ")", "ImagePull", "(", "ctx", "context", ".", "Context", ",", "ref", "string", ",", "all", "bool", ")", "(", "io", ".", "ReadCloser", ",", "error", ")", "{", "auth", ",", "err", ":=", "makeEncodedAuthConfigFromRemote", ...
// ImagePull pull Image
[ "ImagePull", "pull", "Image" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/engine/docker/image.go#L68-L75
138,319
projecteru2/core
engine/docker/image.go
ImagePush
func (e *Engine) ImagePush(ctx context.Context, ref string) (io.ReadCloser, error) { auth, err := makeEncodedAuthConfigFromRemote(e.config.Docker.AuthConfigs, ref) if err != nil { return nil, err } pushOptions := dockertypes.ImagePushOptions{RegistryAuth: auth} return e.client.ImagePush(ctx, ref, pushOptions) }
go
func (e *Engine) ImagePush(ctx context.Context, ref string) (io.ReadCloser, error) { auth, err := makeEncodedAuthConfigFromRemote(e.config.Docker.AuthConfigs, ref) if err != nil { return nil, err } pushOptions := dockertypes.ImagePushOptions{RegistryAuth: auth} return e.client.ImagePush(ctx, ref, pushOptions) }
[ "func", "(", "e", "*", "Engine", ")", "ImagePush", "(", "ctx", "context", ".", "Context", ",", "ref", "string", ")", "(", "io", ".", "ReadCloser", ",", "error", ")", "{", "auth", ",", "err", ":=", "makeEncodedAuthConfigFromRemote", "(", "e", ".", "conf...
// ImagePush push image
[ "ImagePush", "push", "image" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/engine/docker/image.go#L78-L85
138,320
projecteru2/core
engine/docker/image.go
ImageBuild
func (e *Engine) ImageBuild(ctx context.Context, input io.Reader, refs []string) (io.ReadCloser, error) { authConfigs := map[string]dockertypes.AuthConfig{} for domain, conf := range e.config.Docker.AuthConfigs { b64auth, err := encodeAuthToBase64(conf) if err != nil { return nil, err } if _, ok := authCon...
go
func (e *Engine) ImageBuild(ctx context.Context, input io.Reader, refs []string) (io.ReadCloser, error) { authConfigs := map[string]dockertypes.AuthConfig{} for domain, conf := range e.config.Docker.AuthConfigs { b64auth, err := encodeAuthToBase64(conf) if err != nil { return nil, err } if _, ok := authCon...
[ "func", "(", "e", "*", "Engine", ")", "ImageBuild", "(", "ctx", "context", ".", "Context", ",", "input", "io", ".", "Reader", ",", "refs", "[", "]", "string", ")", "(", "io", ".", "ReadCloser", ",", "error", ")", "{", "authConfigs", ":=", "map", "[...
// ImageBuild build image
[ "ImageBuild", "build", "image" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/engine/docker/image.go#L88-L117
138,321
projecteru2/core
engine/docker/image.go
ImageBuildCachePrune
func (e *Engine) ImageBuildCachePrune(ctx context.Context, all bool) (uint64, error) { r, err := e.client.BuildCachePrune(ctx, dockertypes.BuildCachePruneOptions{All: all}) if err != nil { return 0, err } return r.SpaceReclaimed, nil }
go
func (e *Engine) ImageBuildCachePrune(ctx context.Context, all bool) (uint64, error) { r, err := e.client.BuildCachePrune(ctx, dockertypes.BuildCachePruneOptions{All: all}) if err != nil { return 0, err } return r.SpaceReclaimed, nil }
[ "func", "(", "e", "*", "Engine", ")", "ImageBuildCachePrune", "(", "ctx", "context", ".", "Context", ",", "all", "bool", ")", "(", "uint64", ",", "error", ")", "{", "r", ",", "err", ":=", "e", ".", "client", ".", "BuildCachePrune", "(", "ctx", ",", ...
// ImageBuildCachePrune prune build cache
[ "ImageBuildCachePrune", "prune", "build", "cache" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/engine/docker/image.go#L120-L126
138,322
projecteru2/core
engine/docker/image.go
ImageLocalDigests
func (e *Engine) ImageLocalDigests(ctx context.Context, image string) ([]string, error) { inspect, _, err := e.client.ImageInspectWithRaw(ctx, image) if err != nil { return nil, err } return inspect.RepoDigests, nil }
go
func (e *Engine) ImageLocalDigests(ctx context.Context, image string) ([]string, error) { inspect, _, err := e.client.ImageInspectWithRaw(ctx, image) if err != nil { return nil, err } return inspect.RepoDigests, nil }
[ "func", "(", "e", "*", "Engine", ")", "ImageLocalDigests", "(", "ctx", "context", ".", "Context", ",", "image", "string", ")", "(", "[", "]", "string", ",", "error", ")", "{", "inspect", ",", "_", ",", "err", ":=", "e", ".", "client", ".", "ImageIn...
// ImageLocalDigests return image digests
[ "ImageLocalDigests", "return", "image", "digests" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/engine/docker/image.go#L129-L135
138,323
projecteru2/core
engine/docker/image.go
ImageRemoteDigest
func (e *Engine) ImageRemoteDigest(ctx context.Context, image string) (string, error) { auth, err := makeEncodedAuthConfigFromRemote(e.config.Docker.AuthConfigs, image) if err != nil { return "", err } inspect, err := e.client.DistributionInspect(ctx, image, auth) if err != nil { return "", err } remoteDiges...
go
func (e *Engine) ImageRemoteDigest(ctx context.Context, image string) (string, error) { auth, err := makeEncodedAuthConfigFromRemote(e.config.Docker.AuthConfigs, image) if err != nil { return "", err } inspect, err := e.client.DistributionInspect(ctx, image, auth) if err != nil { return "", err } remoteDiges...
[ "func", "(", "e", "*", "Engine", ")", "ImageRemoteDigest", "(", "ctx", "context", ".", "Context", ",", "image", "string", ")", "(", "string", ",", "error", ")", "{", "auth", ",", "err", ":=", "makeEncodedAuthConfigFromRemote", "(", "e", ".", "config", "....
// ImageRemoteDigest return image digest at remote
[ "ImageRemoteDigest", "return", "image", "digest", "at", "remote" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/engine/docker/image.go#L138-L149
138,324
projecteru2/core
types/node.go
Total
func (c CPUMap) Total() int { var count int for _, value := range c { count += value } return count }
go
func (c CPUMap) Total() int { var count int for _, value := range c { count += value } return count }
[ "func", "(", "c", "CPUMap", ")", "Total", "(", ")", "int", "{", "var", "count", "int", "\n", "for", "_", ",", "value", ":=", "range", "c", "{", "count", "+=", "value", "\n", "}", "\n", "return", "count", "\n", "}" ]
// Total show total cpu // Total quotas
[ "Total", "show", "total", "cpu", "Total", "quotas" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/types/node.go#L23-L29
138,325
projecteru2/core
types/node.go
Add
func (c CPUMap) Add(q CPUMap) { for label, value := range q { if _, ok := c[label]; !ok { c[label] = value } else { c[label] += value } } }
go
func (c CPUMap) Add(q CPUMap) { for label, value := range q { if _, ok := c[label]; !ok { c[label] = value } else { c[label] += value } } }
[ "func", "(", "c", "CPUMap", ")", "Add", "(", "q", "CPUMap", ")", "{", "for", "label", ",", "value", ":=", "range", "q", "{", "if", "_", ",", "ok", ":=", "c", "[", "label", "]", ";", "!", "ok", "{", "c", "[", "label", "]", "=", "value", "\n"...
// Add return cpu
[ "Add", "return", "cpu" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/types/node.go#L32-L40
138,326
projecteru2/core
types/node.go
Sub
func (c CPUMap) Sub(q CPUMap) { for label, value := range q { if _, ok := c[label]; ok { c[label] -= value } } }
go
func (c CPUMap) Sub(q CPUMap) { for label, value := range q { if _, ok := c[label]; ok { c[label] -= value } } }
[ "func", "(", "c", "CPUMap", ")", "Sub", "(", "q", "CPUMap", ")", "{", "for", "label", ",", "value", ":=", "range", "q", "{", "if", "_", ",", "ok", ":=", "c", "[", "label", "]", ";", "ok", "{", "c", "[", "label", "]", "-=", "value", "\n", "}...
// Sub decrease cpus
[ "Sub", "decrease", "cpus" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/types/node.go#L43-L49
138,327
projecteru2/core
types/node.go
Info
func (n *Node) Info(ctx context.Context) (*enginetypes.Info, error) { if n.Engine == nil { return nil, ErrNilEngine } return n.Engine.Info(ctx) }
go
func (n *Node) Info(ctx context.Context) (*enginetypes.Info, error) { if n.Engine == nil { return nil, ErrNilEngine } return n.Engine.Info(ctx) }
[ "func", "(", "n", "*", "Node", ")", "Info", "(", "ctx", "context", ".", "Context", ")", "(", "*", "enginetypes", ".", "Info", ",", "error", ")", "{", "if", "n", ".", "Engine", "==", "nil", "{", "return", "nil", ",", "ErrNilEngine", "\n", "}", "\n...
// Info show node info
[ "Info", "show", "node", "info" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/types/node.go#L72-L77
138,328
projecteru2/core
types/node.go
SetCPUUsed
func (n *Node) SetCPUUsed(quota float64, action string) { switch action { case IncrUsage: n.CPUUsed = Round(n.CPUUsed + quota) case DecrUsage: n.CPUUsed = Round(n.CPUUsed - quota) default: } }
go
func (n *Node) SetCPUUsed(quota float64, action string) { switch action { case IncrUsage: n.CPUUsed = Round(n.CPUUsed + quota) case DecrUsage: n.CPUUsed = Round(n.CPUUsed - quota) default: } }
[ "func", "(", "n", "*", "Node", ")", "SetCPUUsed", "(", "quota", "float64", ",", "action", "string", ")", "{", "switch", "action", "{", "case", "IncrUsage", ":", "n", ".", "CPUUsed", "=", "Round", "(", "n", ".", "CPUUsed", "+", "quota", ")", "\n", "...
// SetCPUUsed set cpuusage
[ "SetCPUUsed", "set", "cpuusage" ]
b12208b63ff460ec82327f36d39a2cee786f4dbb
https://github.com/projecteru2/core/blob/b12208b63ff460ec82327f36d39a2cee786f4dbb/types/node.go#L80-L88
138,329
yudai/golcs
golcs.go
New
func New(left, right []interface{}) Lcs { return &lcs{ left: left, right: right, table: nil, indexPairs: nil, values: nil, } }
go
func New(left, right []interface{}) Lcs { return &lcs{ left: left, right: right, table: nil, indexPairs: nil, values: nil, } }
[ "func", "New", "(", "left", ",", "right", "[", "]", "interface", "{", "}", ")", "Lcs", "{", "return", "&", "lcs", "{", "left", ":", "left", ",", "right", ":", "right", ",", "table", ":", "nil", ",", "indexPairs", ":", "nil", ",", "values", ":", ...
// New creates a new LCS calculator from two arrays.
[ "New", "creates", "a", "new", "LCS", "calculator", "from", "two", "arrays", "." ]
ecda9a501e8220fae3b4b600c3db4b0ba22cfc68
https://github.com/yudai/golcs/blob/ecda9a501e8220fae3b4b600c3db4b0ba22cfc68/golcs.go#L46-L54
138,330
jpillora/go-ogle-analytics
type-client.go
ProtocolVersion
func (h *Client) ProtocolVersion(protocolVersion string) *Client { h.protocolVersion = protocolVersion h.protocolVersionSet = true return h }
go
func (h *Client) ProtocolVersion(protocolVersion string) *Client { h.protocolVersion = protocolVersion h.protocolVersionSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProtocolVersion", "(", "protocolVersion", "string", ")", "*", "Client", "{", "h", ".", "protocolVersion", "=", "protocolVersion", "\n", "h", ".", "protocolVersionSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// The Protocol version. The current value is '1'. This will // only change when there are changes made that are not backwards // compatible.
[ "The", "Protocol", "version", ".", "The", "current", "value", "is", "1", ".", "This", "will", "only", "change", "when", "there", "are", "changes", "made", "that", "are", "not", "backwards", "compatible", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L449-L453
138,331
jpillora/go-ogle-analytics
type-client.go
DataSource
func (h *Client) DataSource(dataSource string) *Client { h.dataSource = dataSource h.dataSourceSet = true return h }
go
func (h *Client) DataSource(dataSource string) *Client { h.dataSource = dataSource h.dataSourceSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "DataSource", "(", "dataSource", "string", ")", "*", "Client", "{", "h", ".", "dataSource", "=", "dataSource", "\n", "h", ".", "dataSourceSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// Indicates the data source of the hit. Hits sent from analytics.js // will have data source set to 'web'; hits sent from one of // the mobile SDKs will have data source set to 'app'.
[ "Indicates", "the", "data", "source", "of", "the", "hit", ".", "Hits", "sent", "from", "analytics", ".", "js", "will", "have", "data", "source", "set", "to", "web", ";", "hits", "sent", "from", "one", "of", "the", "mobile", "SDKs", "will", "have", "dat...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L468-L472
138,332
jpillora/go-ogle-analytics
type-client.go
CacheBuster
func (h *Client) CacheBuster(cacheBuster string) *Client { h.cacheBuster = cacheBuster h.cacheBusterSet = true return h }
go
func (h *Client) CacheBuster(cacheBuster string) *Client { h.cacheBuster = cacheBuster h.cacheBusterSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "CacheBuster", "(", "cacheBuster", "string", ")", "*", "Client", "{", "h", ".", "cacheBuster", "=", "cacheBuster", "\n", "h", ".", "cacheBusterSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// Used to send a random number in GET requests to ensure browsers // and proxies don't cache hits. It should be sent as the final // parameter of the request since we've seen some 3rd party // internet filtering software add additional parameters to // HTTP requests incorrectly. This value is not used in reporting.
[ "Used", "to", "send", "a", "random", "number", "in", "GET", "requests", "to", "ensure", "browsers", "and", "proxies", "don", "t", "cache", "hits", ".", "It", "should", "be", "sent", "as", "the", "final", "parameter", "of", "the", "request", "since", "we"...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L490-L494
138,333
jpillora/go-ogle-analytics
type-client.go
SessionControl
func (h *Client) SessionControl(sessionControl string) *Client { h.sessionControl = sessionControl h.sessionControlSet = true return h }
go
func (h *Client) SessionControl(sessionControl string) *Client { h.sessionControl = sessionControl h.sessionControlSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "SessionControl", "(", "sessionControl", "string", ")", "*", "Client", "{", "h", ".", "sessionControl", "=", "sessionControl", "\n", "h", ".", "sessionControlSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// Used to control the session duration. A value of 'start' // forces a new session to start with this hit and 'end' forces // the current session to end with this hit. All other values // are ignored.
[ "Used", "to", "control", "the", "session", "duration", ".", "A", "value", "of", "start", "forces", "a", "new", "session", "to", "start", "with", "this", "hit", "and", "end", "forces", "the", "current", "session", "to", "end", "with", "this", "hit", ".", ...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L523-L527
138,334
jpillora/go-ogle-analytics
type-client.go
UserAgentOverride
func (h *Client) UserAgentOverride(userAgentOverride string) *Client { h.userAgentOverride = userAgentOverride h.userAgentOverrideSet = true return h }
go
func (h *Client) UserAgentOverride(userAgentOverride string) *Client { h.userAgentOverride = userAgentOverride h.userAgentOverrideSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "UserAgentOverride", "(", "userAgentOverride", "string", ")", "*", "Client", "{", "h", ".", "userAgentOverride", "=", "userAgentOverride", "\n", "h", ".", "userAgentOverrideSet", "=", "true", "\n", "return", "h", "\n", "...
// The User Agent of the browser. Note that Google has libraries // to identify real user agents. Hand crafting your own agent // could break at any time.
[ "The", "User", "Agent", "of", "the", "browser", ".", "Note", "that", "Google", "has", "libraries", "to", "identify", "real", "user", "agents", ".", "Hand", "crafting", "your", "own", "agent", "could", "break", "at", "any", "time", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L541-L545
138,335
jpillora/go-ogle-analytics
type-client.go
DocumentReferrer
func (h *Client) DocumentReferrer(documentReferrer string) *Client { h.documentReferrer = documentReferrer h.documentReferrerSet = true return h }
go
func (h *Client) DocumentReferrer(documentReferrer string) *Client { h.documentReferrer = documentReferrer h.documentReferrerSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "DocumentReferrer", "(", "documentReferrer", "string", ")", "*", "Client", "{", "h", ".", "documentReferrer", "=", "documentReferrer", "\n", "h", ".", "documentReferrerSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// Specifies which referral source brought traffic to a website. // This value is also used to compute the traffic source. The // format of this value is a URL.
[ "Specifies", "which", "referral", "source", "brought", "traffic", "to", "a", "website", ".", "This", "value", "is", "also", "used", "to", "compute", "the", "traffic", "source", ".", "The", "format", "of", "this", "value", "is", "a", "URL", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L563-L567
138,336
jpillora/go-ogle-analytics
type-client.go
CampaignName
func (h *Client) CampaignName(campaignName string) *Client { h.campaignName = campaignName h.campaignNameSet = true return h }
go
func (h *Client) CampaignName(campaignName string) *Client { h.campaignName = campaignName h.campaignNameSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "CampaignName", "(", "campaignName", "string", ")", "*", "Client", "{", "h", ".", "campaignName", "=", "campaignName", "\n", "h", ".", "campaignNameSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// Specifies the campaign name.
[ "Specifies", "the", "campaign", "name", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L570-L574
138,337
jpillora/go-ogle-analytics
type-client.go
CampaignSource
func (h *Client) CampaignSource(campaignSource string) *Client { h.campaignSource = campaignSource h.campaignSourceSet = true return h }
go
func (h *Client) CampaignSource(campaignSource string) *Client { h.campaignSource = campaignSource h.campaignSourceSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "CampaignSource", "(", "campaignSource", "string", ")", "*", "Client", "{", "h", ".", "campaignSource", "=", "campaignSource", "\n", "h", ".", "campaignSourceSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// Specifies the campaign source.
[ "Specifies", "the", "campaign", "source", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L577-L581
138,338
jpillora/go-ogle-analytics
type-client.go
CampaignMedium
func (h *Client) CampaignMedium(campaignMedium string) *Client { h.campaignMedium = campaignMedium h.campaignMediumSet = true return h }
go
func (h *Client) CampaignMedium(campaignMedium string) *Client { h.campaignMedium = campaignMedium h.campaignMediumSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "CampaignMedium", "(", "campaignMedium", "string", ")", "*", "Client", "{", "h", ".", "campaignMedium", "=", "campaignMedium", "\n", "h", ".", "campaignMediumSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// Specifies the campaign medium.
[ "Specifies", "the", "campaign", "medium", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L584-L588
138,339
jpillora/go-ogle-analytics
type-client.go
CampaignKeyword
func (h *Client) CampaignKeyword(campaignKeyword string) *Client { h.campaignKeyword = campaignKeyword h.campaignKeywordSet = true return h }
go
func (h *Client) CampaignKeyword(campaignKeyword string) *Client { h.campaignKeyword = campaignKeyword h.campaignKeywordSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "CampaignKeyword", "(", "campaignKeyword", "string", ")", "*", "Client", "{", "h", ".", "campaignKeyword", "=", "campaignKeyword", "\n", "h", ".", "campaignKeywordSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// Specifies the campaign keyword.
[ "Specifies", "the", "campaign", "keyword", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L591-L595
138,340
jpillora/go-ogle-analytics
type-client.go
CampaignContent
func (h *Client) CampaignContent(campaignContent string) *Client { h.campaignContent = campaignContent h.campaignContentSet = true return h }
go
func (h *Client) CampaignContent(campaignContent string) *Client { h.campaignContent = campaignContent h.campaignContentSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "CampaignContent", "(", "campaignContent", "string", ")", "*", "Client", "{", "h", ".", "campaignContent", "=", "campaignContent", "\n", "h", ".", "campaignContentSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// Specifies the campaign content.
[ "Specifies", "the", "campaign", "content", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L598-L602
138,341
jpillora/go-ogle-analytics
type-client.go
CampaignID
func (h *Client) CampaignID(campaignID string) *Client { h.campaignID = campaignID h.campaignIDSet = true return h }
go
func (h *Client) CampaignID(campaignID string) *Client { h.campaignID = campaignID h.campaignIDSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "CampaignID", "(", "campaignID", "string", ")", "*", "Client", "{", "h", ".", "campaignID", "=", "campaignID", "\n", "h", ".", "campaignIDSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// Specifies the campaign ID.
[ "Specifies", "the", "campaign", "ID", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L605-L609
138,342
jpillora/go-ogle-analytics
type-client.go
GoogleAdWordsID
func (h *Client) GoogleAdWordsID(googleAdWordsID string) *Client { h.googleAdWordsID = googleAdWordsID h.googleAdWordsIDSet = true return h }
go
func (h *Client) GoogleAdWordsID(googleAdWordsID string) *Client { h.googleAdWordsID = googleAdWordsID h.googleAdWordsIDSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "GoogleAdWordsID", "(", "googleAdWordsID", "string", ")", "*", "Client", "{", "h", ".", "googleAdWordsID", "=", "googleAdWordsID", "\n", "h", ".", "googleAdWordsIDSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// Specifies the Google AdWords Id.
[ "Specifies", "the", "Google", "AdWords", "Id", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L612-L616
138,343
jpillora/go-ogle-analytics
type-client.go
GoogleDisplayAdsID
func (h *Client) GoogleDisplayAdsID(googleDisplayAdsID string) *Client { h.googleDisplayAdsID = googleDisplayAdsID h.googleDisplayAdsIDSet = true return h }
go
func (h *Client) GoogleDisplayAdsID(googleDisplayAdsID string) *Client { h.googleDisplayAdsID = googleDisplayAdsID h.googleDisplayAdsIDSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "GoogleDisplayAdsID", "(", "googleDisplayAdsID", "string", ")", "*", "Client", "{", "h", ".", "googleDisplayAdsID", "=", "googleDisplayAdsID", "\n", "h", ".", "googleDisplayAdsIDSet", "=", "true", "\n", "return", "h", "\n"...
// Specifies the Google Display Ads Id.
[ "Specifies", "the", "Google", "Display", "Ads", "Id", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L619-L623
138,344
jpillora/go-ogle-analytics
type-client.go
ScreenResolution
func (h *Client) ScreenResolution(screenResolution string) *Client { h.screenResolution = screenResolution h.screenResolutionSet = true return h }
go
func (h *Client) ScreenResolution(screenResolution string) *Client { h.screenResolution = screenResolution h.screenResolutionSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ScreenResolution", "(", "screenResolution", "string", ")", "*", "Client", "{", "h", ".", "screenResolution", "=", "screenResolution", "\n", "h", ".", "screenResolutionSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// Specifies the screen resolution.
[ "Specifies", "the", "screen", "resolution", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L626-L630
138,345
jpillora/go-ogle-analytics
type-client.go
ScreenColors
func (h *Client) ScreenColors(screenColors string) *Client { h.screenColors = screenColors h.screenColorsSet = true return h }
go
func (h *Client) ScreenColors(screenColors string) *Client { h.screenColors = screenColors h.screenColorsSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ScreenColors", "(", "screenColors", "string", ")", "*", "Client", "{", "h", ".", "screenColors", "=", "screenColors", "\n", "h", ".", "screenColorsSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// Specifies the screen color depth.
[ "Specifies", "the", "screen", "color", "depth", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L647-L651
138,346
jpillora/go-ogle-analytics
type-client.go
UserLanguage
func (h *Client) UserLanguage(userLanguage string) *Client { h.userLanguage = userLanguage h.userLanguageSet = true return h }
go
func (h *Client) UserLanguage(userLanguage string) *Client { h.userLanguage = userLanguage h.userLanguageSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "UserLanguage", "(", "userLanguage", "string", ")", "*", "Client", "{", "h", ".", "userLanguage", "=", "userLanguage", "\n", "h", ".", "userLanguageSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// Specifies the language.
[ "Specifies", "the", "language", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L654-L658
138,347
jpillora/go-ogle-analytics
type-client.go
JavaEnabled
func (h *Client) JavaEnabled(javaEnabled bool) *Client { h.javaEnabled = javaEnabled h.javaEnabledSet = true return h }
go
func (h *Client) JavaEnabled(javaEnabled bool) *Client { h.javaEnabled = javaEnabled h.javaEnabledSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "JavaEnabled", "(", "javaEnabled", "bool", ")", "*", "Client", "{", "h", ".", "javaEnabled", "=", "javaEnabled", "\n", "h", ".", "javaEnabledSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// Specifies whether Java was enabled.
[ "Specifies", "whether", "Java", "was", "enabled", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L661-L665
138,348
jpillora/go-ogle-analytics
type-client.go
FlashVersion
func (h *Client) FlashVersion(flashVersion string) *Client { h.flashVersion = flashVersion h.flashVersionSet = true return h }
go
func (h *Client) FlashVersion(flashVersion string) *Client { h.flashVersion = flashVersion h.flashVersionSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "FlashVersion", "(", "flashVersion", "string", ")", "*", "Client", "{", "h", ".", "flashVersion", "=", "flashVersion", "\n", "h", ".", "flashVersionSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// Specifies the flash version.
[ "Specifies", "the", "flash", "version", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L668-L672
138,349
jpillora/go-ogle-analytics
type-client.go
NonInteractionHit
func (h *Client) NonInteractionHit(nonInteractionHit bool) *Client { h.nonInteractionHit = nonInteractionHit h.nonInteractionHitSet = true return h }
go
func (h *Client) NonInteractionHit(nonInteractionHit bool) *Client { h.nonInteractionHit = nonInteractionHit h.nonInteractionHitSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "NonInteractionHit", "(", "nonInteractionHit", "bool", ")", "*", "Client", "{", "h", ".", "nonInteractionHit", "=", "nonInteractionHit", "\n", "h", ".", "nonInteractionHitSet", "=", "true", "\n", "return", "h", "\n", "}"...
// Specifies that a hit be considered non-interactive.
[ "Specifies", "that", "a", "hit", "be", "considered", "non", "-", "interactive", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L675-L679
138,350
jpillora/go-ogle-analytics
type-client.go
DocumentHostName
func (h *Client) DocumentHostName(documentHostName string) *Client { h.documentHostName = documentHostName h.documentHostNameSet = true return h }
go
func (h *Client) DocumentHostName(documentHostName string) *Client { h.documentHostName = documentHostName h.documentHostNameSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "DocumentHostName", "(", "documentHostName", "string", ")", "*", "Client", "{", "h", ".", "documentHostName", "=", "documentHostName", "\n", "h", ".", "documentHostNameSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// Specifies the hostname from which content was hosted.
[ "Specifies", "the", "hostname", "from", "which", "content", "was", "hosted", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L699-L703
138,351
jpillora/go-ogle-analytics
type-client.go
ScreenName
func (h *Client) ScreenName(screenName string) *Client { h.screenName = screenName h.screenNameSet = true return h }
go
func (h *Client) ScreenName(screenName string) *Client { h.screenName = screenName h.screenNameSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ScreenName", "(", "screenName", "string", ")", "*", "Client", "{", "h", ".", "screenName", "=", "screenName", "\n", "h", ".", "screenNameSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// If not specified, this will default to the unique URL of // the page by either using the &dl parameter as-is or assembling // it from &dh and &dp. App tracking makes use of this for // the 'Screen Name' of the screenview hit.
[ "If", "not", "specified", "this", "will", "default", "to", "the", "unique", "URL", "of", "the", "page", "by", "either", "using", "the", "&dl", "parameter", "as", "-", "is", "or", "assembling", "it", "from", "&dh", "and", "&dp", ".", "App", "tracking", ...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L725-L729
138,352
jpillora/go-ogle-analytics
type-client.go
LinkID
func (h *Client) LinkID(linkID string) *Client { h.linkID = linkID h.linkIDSet = true return h }
go
func (h *Client) LinkID(linkID string) *Client { h.linkID = linkID h.linkIDSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "LinkID", "(", "linkID", "string", ")", "*", "Client", "{", "h", ".", "linkID", "=", "linkID", "\n", "h", ".", "linkIDSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// The ID of a clicked DOM element, used to disambiguate multiple // links to the same URL in In-Page Analytics reports when // Enhanced Link Attribution is enabled for the property.
[ "The", "ID", "of", "a", "clicked", "DOM", "element", "used", "to", "disambiguate", "multiple", "links", "to", "the", "same", "URL", "in", "In", "-", "Page", "Analytics", "reports", "when", "Enhanced", "Link", "Attribution", "is", "enabled", "for", "the", "...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L734-L738
138,353
jpillora/go-ogle-analytics
type-client.go
ApplicationName
func (h *Client) ApplicationName(applicationName string) *Client { h.applicationName = applicationName h.applicationNameSet = true return h }
go
func (h *Client) ApplicationName(applicationName string) *Client { h.applicationName = applicationName h.applicationNameSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ApplicationName", "(", "applicationName", "string", ")", "*", "Client", "{", "h", ".", "applicationName", "=", "applicationName", "\n", "h", ".", "applicationNameSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// Specifies the application name.
[ "Specifies", "the", "application", "name", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L741-L745
138,354
jpillora/go-ogle-analytics
type-client.go
ApplicationID
func (h *Client) ApplicationID(applicationID string) *Client { h.applicationID = applicationID h.applicationIDSet = true return h }
go
func (h *Client) ApplicationID(applicationID string) *Client { h.applicationID = applicationID h.applicationIDSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ApplicationID", "(", "applicationID", "string", ")", "*", "Client", "{", "h", ".", "applicationID", "=", "applicationID", "\n", "h", ".", "applicationIDSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// Application identifier.
[ "Application", "identifier", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L748-L752
138,355
jpillora/go-ogle-analytics
type-client.go
ApplicationVersion
func (h *Client) ApplicationVersion(applicationVersion string) *Client { h.applicationVersion = applicationVersion h.applicationVersionSet = true return h }
go
func (h *Client) ApplicationVersion(applicationVersion string) *Client { h.applicationVersion = applicationVersion h.applicationVersionSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ApplicationVersion", "(", "applicationVersion", "string", ")", "*", "Client", "{", "h", ".", "applicationVersion", "=", "applicationVersion", "\n", "h", ".", "applicationVersionSet", "=", "true", "\n", "return", "h", "\n"...
// Specifies the application version.
[ "Specifies", "the", "application", "version", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L755-L759
138,356
jpillora/go-ogle-analytics
type-client.go
ApplicationInstallerID
func (h *Client) ApplicationInstallerID(applicationInstallerID string) *Client { h.applicationInstallerID = applicationInstallerID h.applicationInstallerIDSet = true return h }
go
func (h *Client) ApplicationInstallerID(applicationInstallerID string) *Client { h.applicationInstallerID = applicationInstallerID h.applicationInstallerIDSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ApplicationInstallerID", "(", "applicationInstallerID", "string", ")", "*", "Client", "{", "h", ".", "applicationInstallerID", "=", "applicationInstallerID", "\n", "h", ".", "applicationInstallerIDSet", "=", "true", "\n", "re...
// Application installer identifier.
[ "Application", "installer", "identifier", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L762-L766
138,357
jpillora/go-ogle-analytics
type-client.go
ProductSKU
func (h *Client) ProductSKU(productSKU string) *Client { h.productSKU = productSKU h.productSKUSet = true return h }
go
func (h *Client) ProductSKU(productSKU string) *Client { h.productSKU = productSKU h.productSKUSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProductSKU", "(", "productSKU", "string", ")", "*", "Client", "{", "h", ".", "productSKU", "=", "productSKU", "\n", "h", ".", "productSKUSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// The SKU of the product. Product index must be a positive // integer between 1 and 200, inclusive. For analytics.js the // Enhanced Ecommerce plugin must be installed before using // this field.
[ "The", "SKU", "of", "the", "product", ".", "Product", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "For", "analytics", ".", "js", "the", "Enhanced", "Ecommerce", "plugin", "must", "be", "installed", "be...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L772-L776
138,358
jpillora/go-ogle-analytics
type-client.go
ProductName
func (h *Client) ProductName(productName string) *Client { h.productName = productName h.productNameSet = true return h }
go
func (h *Client) ProductName(productName string) *Client { h.productName = productName h.productNameSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProductName", "(", "productName", "string", ")", "*", "Client", "{", "h", ".", "productName", "=", "productName", "\n", "h", ".", "productNameSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// The name of the product. Product index must be a positive // integer between 1 and 200, inclusive. For analytics.js the // Enhanced Ecommerce plugin must be installed before using // this field.
[ "The", "name", "of", "the", "product", ".", "Product", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "For", "analytics", ".", "js", "the", "Enhanced", "Ecommerce", "plugin", "must", "be", "installed", "b...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L782-L786
138,359
jpillora/go-ogle-analytics
type-client.go
ProductBrand
func (h *Client) ProductBrand(productBrand string) *Client { h.productBrand = productBrand h.productBrandSet = true return h }
go
func (h *Client) ProductBrand(productBrand string) *Client { h.productBrand = productBrand h.productBrandSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProductBrand", "(", "productBrand", "string", ")", "*", "Client", "{", "h", ".", "productBrand", "=", "productBrand", "\n", "h", ".", "productBrandSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// The brand associated with the product. Product index must // be a positive integer between 1 and 200, inclusive. For // analytics.js the Enhanced Ecommerce plugin must be installed // before using this field.
[ "The", "brand", "associated", "with", "the", "product", ".", "Product", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "For", "analytics", ".", "js", "the", "Enhanced", "Ecommerce", "plugin", "must", "be", ...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L792-L796
138,360
jpillora/go-ogle-analytics
type-client.go
ProductVariant
func (h *Client) ProductVariant(productVariant string) *Client { h.productVariant = productVariant h.productVariantSet = true return h }
go
func (h *Client) ProductVariant(productVariant string) *Client { h.productVariant = productVariant h.productVariantSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProductVariant", "(", "productVariant", "string", ")", "*", "Client", "{", "h", ".", "productVariant", "=", "productVariant", "\n", "h", ".", "productVariantSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// The variant of the product. Product index must be a positive // integer between 1 and 200, inclusive. For analytics.js the // Enhanced Ecommerce plugin must be installed before using // this field.
[ "The", "variant", "of", "the", "product", ".", "Product", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "For", "analytics", ".", "js", "the", "Enhanced", "Ecommerce", "plugin", "must", "be", "installed", ...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L814-L818
138,361
jpillora/go-ogle-analytics
type-client.go
ProductPrice
func (h *Client) ProductPrice(productPrice float64) *Client { h.productPrice = productPrice h.productPriceSet = true return h }
go
func (h *Client) ProductPrice(productPrice float64) *Client { h.productPrice = productPrice h.productPriceSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProductPrice", "(", "productPrice", "float64", ")", "*", "Client", "{", "h", ".", "productPrice", "=", "productPrice", "\n", "h", ".", "productPriceSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// The price of a product. Product index must be a positive // integer between 1 and 200, inclusive. For analytics.js the // Enhanced Ecommerce plugin must be installed before using // this field.
[ "The", "price", "of", "a", "product", ".", "Product", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "For", "analytics", ".", "js", "the", "Enhanced", "Ecommerce", "plugin", "must", "be", "installed", "be...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L824-L828
138,362
jpillora/go-ogle-analytics
type-client.go
ProductQuantity
func (h *Client) ProductQuantity(productQuantity int64) *Client { h.productQuantity = productQuantity h.productQuantitySet = true return h }
go
func (h *Client) ProductQuantity(productQuantity int64) *Client { h.productQuantity = productQuantity h.productQuantitySet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProductQuantity", "(", "productQuantity", "int64", ")", "*", "Client", "{", "h", ".", "productQuantity", "=", "productQuantity", "\n", "h", ".", "productQuantitySet", "=", "true", "\n", "return", "h", "\n", "}" ]
// The quantity of a product. Product index must be a positive // integer between 1 and 200, inclusive. For analytics.js the // Enhanced Ecommerce plugin must be installed before using // this field.
[ "The", "quantity", "of", "a", "product", ".", "Product", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "For", "analytics", ".", "js", "the", "Enhanced", "Ecommerce", "plugin", "must", "be", "installed", ...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L834-L838
138,363
jpillora/go-ogle-analytics
type-client.go
ProductCouponCode
func (h *Client) ProductCouponCode(productCouponCode string) *Client { h.productCouponCode = productCouponCode h.productCouponCodeSet = true return h }
go
func (h *Client) ProductCouponCode(productCouponCode string) *Client { h.productCouponCode = productCouponCode h.productCouponCodeSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProductCouponCode", "(", "productCouponCode", "string", ")", "*", "Client", "{", "h", ".", "productCouponCode", "=", "productCouponCode", "\n", "h", ".", "productCouponCodeSet", "=", "true", "\n", "return", "h", "\n", "...
// The coupon code associated with a product. Product index // must be a positive integer between 1 and 200, inclusive. // For analytics.js the Enhanced Ecommerce plugin must be installed // before using this field.
[ "The", "coupon", "code", "associated", "with", "a", "product", ".", "Product", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "For", "analytics", ".", "js", "the", "Enhanced", "Ecommerce", "plugin", "must",...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L844-L848
138,364
jpillora/go-ogle-analytics
type-client.go
ProductPosition
func (h *Client) ProductPosition(productPosition int64) *Client { h.productPosition = productPosition h.productPositionSet = true return h }
go
func (h *Client) ProductPosition(productPosition int64) *Client { h.productPosition = productPosition h.productPositionSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProductPosition", "(", "productPosition", "int64", ")", "*", "Client", "{", "h", ".", "productPosition", "=", "productPosition", "\n", "h", ".", "productPositionSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// The product's position in a list or collection. Product // index must be a positive integer between 1 and 200, inclusive. // For analytics.js the Enhanced Ecommerce plugin must be installed // before using this field.
[ "The", "product", "s", "position", "in", "a", "list", "or", "collection", ".", "Product", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "For", "analytics", ".", "js", "the", "Enhanced", "Ecommerce", "plu...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L854-L858
138,365
jpillora/go-ogle-analytics
type-client.go
ProductCustomDimension
func (h *Client) ProductCustomDimension(productCustomDimension string) *Client { h.productCustomDimension = productCustomDimension h.productCustomDimensionSet = true return h }
go
func (h *Client) ProductCustomDimension(productCustomDimension string) *Client { h.productCustomDimension = productCustomDimension h.productCustomDimensionSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProductCustomDimension", "(", "productCustomDimension", "string", ")", "*", "Client", "{", "h", ".", "productCustomDimension", "=", "productCustomDimension", "\n", "h", ".", "productCustomDimensionSet", "=", "true", "\n", "re...
// A product-level custom dimension where dimension index is // a positive integer between 1 and 200, inclusive. Product // index must be a positive integer between 1 and 200, inclusive. // For analytics.js the Enhanced Ecommerce plugin must be installed // before using this field.
[ "A", "product", "-", "level", "custom", "dimension", "where", "dimension", "index", "is", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "Product", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", ...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L865-L869
138,366
jpillora/go-ogle-analytics
type-client.go
ProductCustomMetric
func (h *Client) ProductCustomMetric(productCustomMetric int64) *Client { h.productCustomMetric = productCustomMetric h.productCustomMetricSet = true return h }
go
func (h *Client) ProductCustomMetric(productCustomMetric int64) *Client { h.productCustomMetric = productCustomMetric h.productCustomMetricSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProductCustomMetric", "(", "productCustomMetric", "int64", ")", "*", "Client", "{", "h", ".", "productCustomMetric", "=", "productCustomMetric", "\n", "h", ".", "productCustomMetricSet", "=", "true", "\n", "return", "h", ...
// A product-level custom metric where metric index is a positive // integer between 1 and 200, inclusive. Product index must // be a positive integer between 1 and 200, inclusive. For // analytics.js the Enhanced Ecommerce plugin must be installed // before using this field.
[ "A", "product", "-", "level", "custom", "metric", "where", "metric", "index", "is", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "Product", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", "inc...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L876-L880
138,367
jpillora/go-ogle-analytics
type-client.go
TransactionID
func (h *Client) TransactionID(transactionID string) *Client { h.transactionID = transactionID h.transactionIDSet = true return h }
go
func (h *Client) TransactionID(transactionID string) *Client { h.transactionID = transactionID h.transactionIDSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "TransactionID", "(", "transactionID", "string", ")", "*", "Client", "{", "h", ".", "transactionID", "=", "transactionID", "\n", "h", ".", "transactionIDSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// The transaction ID. This is an additional parameter that // can be sent when Product Action is set to 'purchase' or // 'refund'. For analytics.js the Enhanced Ecommerce plugin // must be installed before using this field.
[ "The", "transaction", "ID", ".", "This", "is", "an", "additional", "parameter", "that", "can", "be", "sent", "when", "Product", "Action", "is", "set", "to", "purchase", "or", "refund", ".", "For", "analytics", ".", "js", "the", "Enhanced", "Ecommerce", "pl...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L898-L902
138,368
jpillora/go-ogle-analytics
type-client.go
Affiliation
func (h *Client) Affiliation(affiliation string) *Client { h.affiliation = affiliation h.affiliationSet = true return h }
go
func (h *Client) Affiliation(affiliation string) *Client { h.affiliation = affiliation h.affiliationSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "Affiliation", "(", "affiliation", "string", ")", "*", "Client", "{", "h", ".", "affiliation", "=", "affiliation", "\n", "h", ".", "affiliationSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// The store or affiliation from which this transaction occurred. // This is an additional parameter that can be sent when Product // Action is set to 'purchase' or 'refund'. For analytics.js // the Enhanced Ecommerce plugin must be installed before using // this field.
[ "The", "store", "or", "affiliation", "from", "which", "this", "transaction", "occurred", ".", "This", "is", "an", "additional", "parameter", "that", "can", "be", "sent", "when", "Product", "Action", "is", "set", "to", "purchase", "or", "refund", ".", "For", ...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L909-L913
138,369
jpillora/go-ogle-analytics
type-client.go
Revenue
func (h *Client) Revenue(revenue float64) *Client { h.revenue = revenue h.revenueSet = true return h }
go
func (h *Client) Revenue(revenue float64) *Client { h.revenue = revenue h.revenueSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "Revenue", "(", "revenue", "float64", ")", "*", "Client", "{", "h", ".", "revenue", "=", "revenue", "\n", "h", ".", "revenueSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// The total value of the transaction, including tax and shipping. // If not sent, this value will be automatically calculated // using the product quantity and price fields of all products // in the same hit. This is an additional parameter that can // be sent when Product Action is set to 'purchase' or 'refund'. // F...
[ "The", "total", "value", "of", "the", "transaction", "including", "tax", "and", "shipping", ".", "If", "not", "sent", "this", "value", "will", "be", "automatically", "calculated", "using", "the", "product", "quantity", "and", "price", "fields", "of", "all", ...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L922-L926
138,370
jpillora/go-ogle-analytics
type-client.go
Tax
func (h *Client) Tax(tax float64) *Client { h.tax = tax h.taxSet = true return h }
go
func (h *Client) Tax(tax float64) *Client { h.tax = tax h.taxSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "Tax", "(", "tax", "float64", ")", "*", "Client", "{", "h", ".", "tax", "=", "tax", "\n", "h", ".", "taxSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// The total tax associated with the transaction. This is an // additional parameter that can be sent when Product Action // is set to 'purchase' or 'refund'. For analytics.js the Enhanced // Ecommerce plugin must be installed before using this field.
[ "The", "total", "tax", "associated", "with", "the", "transaction", ".", "This", "is", "an", "additional", "parameter", "that", "can", "be", "sent", "when", "Product", "Action", "is", "set", "to", "purchase", "or", "refund", ".", "For", "analytics", ".", "j...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L932-L936
138,371
jpillora/go-ogle-analytics
type-client.go
Shipping
func (h *Client) Shipping(shipping float64) *Client { h.shipping = shipping h.shippingSet = true return h }
go
func (h *Client) Shipping(shipping float64) *Client { h.shipping = shipping h.shippingSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "Shipping", "(", "shipping", "float64", ")", "*", "Client", "{", "h", ".", "shipping", "=", "shipping", "\n", "h", ".", "shippingSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// The shipping cost associated with the transaction. This // is an additional parameter that can be sent when Product // Action is set to 'purchase' or 'refund'. For analytics.js // the Enhanced Ecommerce plugin must be installed before using // this field.
[ "The", "shipping", "cost", "associated", "with", "the", "transaction", ".", "This", "is", "an", "additional", "parameter", "that", "can", "be", "sent", "when", "Product", "Action", "is", "set", "to", "purchase", "or", "refund", ".", "For", "analytics", ".", ...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L943-L947
138,372
jpillora/go-ogle-analytics
type-client.go
CouponCode
func (h *Client) CouponCode(couponCode string) *Client { h.couponCode = couponCode h.couponCodeSet = true return h }
go
func (h *Client) CouponCode(couponCode string) *Client { h.couponCode = couponCode h.couponCodeSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "CouponCode", "(", "couponCode", "string", ")", "*", "Client", "{", "h", ".", "couponCode", "=", "couponCode", "\n", "h", ".", "couponCodeSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// The transaction coupon redeemed with the transaction. This // is an additional parameter that can be sent when Product // Action is set to 'purchase' or 'refund'. For analytics.js // the Enhanced Ecommerce plugin must be installed before using // this field.
[ "The", "transaction", "coupon", "redeemed", "with", "the", "transaction", ".", "This", "is", "an", "additional", "parameter", "that", "can", "be", "sent", "when", "Product", "Action", "is", "set", "to", "purchase", "or", "refund", ".", "For", "analytics", "....
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L954-L958
138,373
jpillora/go-ogle-analytics
type-client.go
ProductActionList
func (h *Client) ProductActionList(productActionList string) *Client { h.productActionList = productActionList h.productActionListSet = true return h }
go
func (h *Client) ProductActionList(productActionList string) *Client { h.productActionList = productActionList h.productActionListSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProductActionList", "(", "productActionList", "string", ")", "*", "Client", "{", "h", ".", "productActionList", "=", "productActionList", "\n", "h", ".", "productActionListSet", "=", "true", "\n", "return", "h", "\n", "...
// The list or collection from which a product action occurred. // This is an additional parameter that can be sent when Product // Action is set to 'detail' or 'click'. For analytics.js the // Enhanced Ecommerce plugin must be installed before using // this field.
[ "The", "list", "or", "collection", "from", "which", "a", "product", "action", "occurred", ".", "This", "is", "an", "additional", "parameter", "that", "can", "be", "sent", "when", "Product", "Action", "is", "set", "to", "detail", "or", "click", ".", "For", ...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L965-L969
138,374
jpillora/go-ogle-analytics
type-client.go
CheckoutStep
func (h *Client) CheckoutStep(checkoutStep int64) *Client { h.checkoutStep = checkoutStep h.checkoutStepSet = true return h }
go
func (h *Client) CheckoutStep(checkoutStep int64) *Client { h.checkoutStep = checkoutStep h.checkoutStepSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "CheckoutStep", "(", "checkoutStep", "int64", ")", "*", "Client", "{", "h", ".", "checkoutStep", "=", "checkoutStep", "\n", "h", ".", "checkoutStepSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// The step number in a checkout funnel. This is an additional // parameter that can be sent when Product Action is set to // 'checkout'. For analytics.js the Enhanced Ecommerce plugin // must be installed before using this field.
[ "The", "step", "number", "in", "a", "checkout", "funnel", ".", "This", "is", "an", "additional", "parameter", "that", "can", "be", "sent", "when", "Product", "Action", "is", "set", "to", "checkout", ".", "For", "analytics", ".", "js", "the", "Enhanced", ...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L975-L979
138,375
jpillora/go-ogle-analytics
type-client.go
CheckoutStepOption
func (h *Client) CheckoutStepOption(checkoutStepOption string) *Client { h.checkoutStepOption = checkoutStepOption h.checkoutStepOptionSet = true return h }
go
func (h *Client) CheckoutStepOption(checkoutStepOption string) *Client { h.checkoutStepOption = checkoutStepOption h.checkoutStepOptionSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "CheckoutStepOption", "(", "checkoutStepOption", "string", ")", "*", "Client", "{", "h", ".", "checkoutStepOption", "=", "checkoutStepOption", "\n", "h", ".", "checkoutStepOptionSet", "=", "true", "\n", "return", "h", "\n"...
// Additional information about a checkout step. This is an // additional parameter that can be sent when Product Action // is set to 'checkout'. For analytics.js the Enhanced Ecommerce // plugin must be installed before using this field.
[ "Additional", "information", "about", "a", "checkout", "step", ".", "This", "is", "an", "additional", "parameter", "that", "can", "be", "sent", "when", "Product", "Action", "is", "set", "to", "checkout", ".", "For", "analytics", ".", "js", "the", "Enhanced",...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L985-L989
138,376
jpillora/go-ogle-analytics
type-client.go
ProductImpressionListName
func (h *Client) ProductImpressionListName(productImpressionListName string) *Client { h.productImpressionListName = productImpressionListName h.productImpressionListNameSet = true return h }
go
func (h *Client) ProductImpressionListName(productImpressionListName string) *Client { h.productImpressionListName = productImpressionListName h.productImpressionListNameSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProductImpressionListName", "(", "productImpressionListName", "string", ")", "*", "Client", "{", "h", ".", "productImpressionListName", "=", "productImpressionListName", "\n", "h", ".", "productImpressionListNameSet", "=", "true"...
// The list or collection to which a product belongs. Impression // List index must be a positive integer between 1 and 200, // inclusive. For analytics.js the Enhanced Ecommerce plugin // must be installed before using this field.
[ "The", "list", "or", "collection", "to", "which", "a", "product", "belongs", ".", "Impression", "List", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "For", "analytics", ".", "js", "the", "Enhanced", "Ec...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L995-L999
138,377
jpillora/go-ogle-analytics
type-client.go
ProductImpressionSKU
func (h *Client) ProductImpressionSKU(productImpressionSKU string) *Client { h.productImpressionSKU = productImpressionSKU h.productImpressionSKUSet = true return h }
go
func (h *Client) ProductImpressionSKU(productImpressionSKU string) *Client { h.productImpressionSKU = productImpressionSKU h.productImpressionSKUSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProductImpressionSKU", "(", "productImpressionSKU", "string", ")", "*", "Client", "{", "h", ".", "productImpressionSKU", "=", "productImpressionSKU", "\n", "h", ".", "productImpressionSKUSet", "=", "true", "\n", "return", "...
// The product ID or SKU. Impression List index must be a positive // integer between 1 and 200, inclusive. Product index must // be a positive integer between 1 and 200, inclusive. For // analytics.js the Enhanced Ecommerce plugin must be installed // before using this field.
[ "The", "product", "ID", "or", "SKU", ".", "Impression", "List", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "Product", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", ...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L1006-L1010
138,378
jpillora/go-ogle-analytics
type-client.go
ProductImpressionName
func (h *Client) ProductImpressionName(productImpressionName string) *Client { h.productImpressionName = productImpressionName h.productImpressionNameSet = true return h }
go
func (h *Client) ProductImpressionName(productImpressionName string) *Client { h.productImpressionName = productImpressionName h.productImpressionNameSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProductImpressionName", "(", "productImpressionName", "string", ")", "*", "Client", "{", "h", ".", "productImpressionName", "=", "productImpressionName", "\n", "h", ".", "productImpressionNameSet", "=", "true", "\n", "return"...
// The name of the product. Impression List index must be a // positive integer between 1 and 200, inclusive. Product index // must be a positive integer between 1 and 200, inclusive. // For analytics.js the Enhanced Ecommerce plugin must be installed // before using this field.
[ "The", "name", "of", "the", "product", ".", "Impression", "List", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "Product", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200",...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L1017-L1021
138,379
jpillora/go-ogle-analytics
type-client.go
ProductImpressionBrand
func (h *Client) ProductImpressionBrand(productImpressionBrand string) *Client { h.productImpressionBrand = productImpressionBrand h.productImpressionBrandSet = true return h }
go
func (h *Client) ProductImpressionBrand(productImpressionBrand string) *Client { h.productImpressionBrand = productImpressionBrand h.productImpressionBrandSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProductImpressionBrand", "(", "productImpressionBrand", "string", ")", "*", "Client", "{", "h", ".", "productImpressionBrand", "=", "productImpressionBrand", "\n", "h", ".", "productImpressionBrandSet", "=", "true", "\n", "re...
// The brand associated with the product. Impression List index // must be a positive integer between 1 and 200, inclusive. // Product index must be a positive integer between 1 and 200, // inclusive. For analytics.js the Enhanced Ecommerce plugin // must be installed before using this field.
[ "The", "brand", "associated", "with", "the", "product", ".", "Impression", "List", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "Product", "index", "must", "be", "a", "positive", "integer", "between", "1"...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L1028-L1032
138,380
jpillora/go-ogle-analytics
type-client.go
ProductImpressionCategory
func (h *Client) ProductImpressionCategory(productImpressionCategory string) *Client { h.productImpressionCategory = productImpressionCategory h.productImpressionCategorySet = true return h }
go
func (h *Client) ProductImpressionCategory(productImpressionCategory string) *Client { h.productImpressionCategory = productImpressionCategory h.productImpressionCategorySet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProductImpressionCategory", "(", "productImpressionCategory", "string", ")", "*", "Client", "{", "h", ".", "productImpressionCategory", "=", "productImpressionCategory", "\n", "h", ".", "productImpressionCategorySet", "=", "true"...
// The category to which the product belongs. Impression List // index must be a positive integer between 1 and 200, inclusive. // Product index must be a positive integer between 1 and 200, // inclusive. For analytics.js the Enhanced Ecommerce plugin // must be installed before using this field.
[ "The", "category", "to", "which", "the", "product", "belongs", ".", "Impression", "List", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "Product", "index", "must", "be", "a", "positive", "integer", "betwee...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L1039-L1043
138,381
jpillora/go-ogle-analytics
type-client.go
ProductImpressionVariant
func (h *Client) ProductImpressionVariant(productImpressionVariant string) *Client { h.productImpressionVariant = productImpressionVariant h.productImpressionVariantSet = true return h }
go
func (h *Client) ProductImpressionVariant(productImpressionVariant string) *Client { h.productImpressionVariant = productImpressionVariant h.productImpressionVariantSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProductImpressionVariant", "(", "productImpressionVariant", "string", ")", "*", "Client", "{", "h", ".", "productImpressionVariant", "=", "productImpressionVariant", "\n", "h", ".", "productImpressionVariantSet", "=", "true", "...
// The variant of the product. Impression List index must be // a positive integer between 1 and 200, inclusive. Product // index must be a positive integer between 1 and 200, inclusive. // For analytics.js the Enhanced Ecommerce plugin must be installed // before using this field.
[ "The", "variant", "of", "the", "product", ".", "Impression", "List", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "Product", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "20...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L1050-L1054
138,382
jpillora/go-ogle-analytics
type-client.go
ProductImpressionPosition
func (h *Client) ProductImpressionPosition(productImpressionPosition int64) *Client { h.productImpressionPosition = productImpressionPosition h.productImpressionPositionSet = true return h }
go
func (h *Client) ProductImpressionPosition(productImpressionPosition int64) *Client { h.productImpressionPosition = productImpressionPosition h.productImpressionPositionSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProductImpressionPosition", "(", "productImpressionPosition", "int64", ")", "*", "Client", "{", "h", ".", "productImpressionPosition", "=", "productImpressionPosition", "\n", "h", ".", "productImpressionPositionSet", "=", "true",...
// The product's position in a list or collection. Impression // List index must be a positive integer between 1 and 200, // inclusive. Product index must be a positive integer between // 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce // plugin must be installed before using this field.
[ "The", "product", "s", "position", "in", "a", "list", "or", "collection", ".", "Impression", "List", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "Product", "index", "must", "be", "a", "positive", "inte...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L1061-L1065
138,383
jpillora/go-ogle-analytics
type-client.go
ProductImpressionPrice
func (h *Client) ProductImpressionPrice(productImpressionPrice float64) *Client { h.productImpressionPrice = productImpressionPrice h.productImpressionPriceSet = true return h }
go
func (h *Client) ProductImpressionPrice(productImpressionPrice float64) *Client { h.productImpressionPrice = productImpressionPrice h.productImpressionPriceSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProductImpressionPrice", "(", "productImpressionPrice", "float64", ")", "*", "Client", "{", "h", ".", "productImpressionPrice", "=", "productImpressionPrice", "\n", "h", ".", "productImpressionPriceSet", "=", "true", "\n", "r...
// The price of a product. Impression List index must be a // positive integer between 1 and 200, inclusive. Product index // must be a positive integer between 1 and 200, inclusive. // For analytics.js the Enhanced Ecommerce plugin must be installed // before using this field.
[ "The", "price", "of", "a", "product", ".", "Impression", "List", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "Product", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", ...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L1072-L1076
138,384
jpillora/go-ogle-analytics
type-client.go
ProductImpressionCustomDimension
func (h *Client) ProductImpressionCustomDimension(productImpressionCustomDimension string) *Client { h.productImpressionCustomDimension = productImpressionCustomDimension h.productImpressionCustomDimensionSet = true return h }
go
func (h *Client) ProductImpressionCustomDimension(productImpressionCustomDimension string) *Client { h.productImpressionCustomDimension = productImpressionCustomDimension h.productImpressionCustomDimensionSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProductImpressionCustomDimension", "(", "productImpressionCustomDimension", "string", ")", "*", "Client", "{", "h", ".", "productImpressionCustomDimension", "=", "productImpressionCustomDimension", "\n", "h", ".", "productImpressionC...
// A product-level custom dimension where dimension index is // a positive integer between 1 and 200, inclusive. Impression // List index must be a positive integer between 1 and 200, // inclusive. Product index must be a positive integer between // 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce // plugi...
[ "A", "product", "-", "level", "custom", "dimension", "where", "dimension", "index", "is", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "Impression", "List", "index", "must", "be", "a", "positive", "integer", "between", "1", "an...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L1084-L1088
138,385
jpillora/go-ogle-analytics
type-client.go
ProductImpressionCustomMetric
func (h *Client) ProductImpressionCustomMetric(productImpressionCustomMetric int64) *Client { h.productImpressionCustomMetric = productImpressionCustomMetric h.productImpressionCustomMetricSet = true return h }
go
func (h *Client) ProductImpressionCustomMetric(productImpressionCustomMetric int64) *Client { h.productImpressionCustomMetric = productImpressionCustomMetric h.productImpressionCustomMetricSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProductImpressionCustomMetric", "(", "productImpressionCustomMetric", "int64", ")", "*", "Client", "{", "h", ".", "productImpressionCustomMetric", "=", "productImpressionCustomMetric", "\n", "h", ".", "productImpressionCustomMetricSe...
// A product-level custom metric where metric index is a positive // integer between 1 and 200, inclusive. Impression List index // must be a positive integer between 1 and 200, inclusive. // Product index must be a positive integer between 1 and 200, // inclusive. For analytics.js the Enhanced Ecommerce plugin // must...
[ "A", "product", "-", "level", "custom", "metric", "where", "metric", "index", "is", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "Impression", "List", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", ...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L1096-L1100
138,386
jpillora/go-ogle-analytics
type-client.go
PromotionID
func (h *Client) PromotionID(promotionID string) *Client { h.promotionID = promotionID h.promotionIDSet = true return h }
go
func (h *Client) PromotionID(promotionID string) *Client { h.promotionID = promotionID h.promotionIDSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "PromotionID", "(", "promotionID", "string", ")", "*", "Client", "{", "h", ".", "promotionID", "=", "promotionID", "\n", "h", ".", "promotionIDSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// The promotion ID. Promotion index must be a positive integer // between 1 and 200, inclusive. For analytics.js the Enhanced // Ecommerce plugin must be installed before using this field.
[ "The", "promotion", "ID", ".", "Promotion", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "For", "analytics", ".", "js", "the", "Enhanced", "Ecommerce", "plugin", "must", "be", "installed", "before", "usin...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L1105-L1109
138,387
jpillora/go-ogle-analytics
type-client.go
PromotionName
func (h *Client) PromotionName(promotionName string) *Client { h.promotionName = promotionName h.promotionNameSet = true return h }
go
func (h *Client) PromotionName(promotionName string) *Client { h.promotionName = promotionName h.promotionNameSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "PromotionName", "(", "promotionName", "string", ")", "*", "Client", "{", "h", ".", "promotionName", "=", "promotionName", "\n", "h", ".", "promotionNameSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// The name of the promotion. Promotion index must be a positive // integer between 1 and 200, inclusive. For analytics.js the // Enhanced Ecommerce plugin must be installed before using // this field.
[ "The", "name", "of", "the", "promotion", ".", "Promotion", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "For", "analytics", ".", "js", "the", "Enhanced", "Ecommerce", "plugin", "must", "be", "installed", ...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L1115-L1119
138,388
jpillora/go-ogle-analytics
type-client.go
PromotionCreative
func (h *Client) PromotionCreative(promotionCreative string) *Client { h.promotionCreative = promotionCreative h.promotionCreativeSet = true return h }
go
func (h *Client) PromotionCreative(promotionCreative string) *Client { h.promotionCreative = promotionCreative h.promotionCreativeSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "PromotionCreative", "(", "promotionCreative", "string", ")", "*", "Client", "{", "h", ".", "promotionCreative", "=", "promotionCreative", "\n", "h", ".", "promotionCreativeSet", "=", "true", "\n", "return", "h", "\n", "...
// The creative associated with the promotion. Promotion index // must be a positive integer between 1 and 200, inclusive. // For analytics.js the Enhanced Ecommerce plugin must be installed // before using this field.
[ "The", "creative", "associated", "with", "the", "promotion", ".", "Promotion", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "For", "analytics", ".", "js", "the", "Enhanced", "Ecommerce", "plugin", "must", ...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L1125-L1129
138,389
jpillora/go-ogle-analytics
type-client.go
PromotionPosition
func (h *Client) PromotionPosition(promotionPosition string) *Client { h.promotionPosition = promotionPosition h.promotionPositionSet = true return h }
go
func (h *Client) PromotionPosition(promotionPosition string) *Client { h.promotionPosition = promotionPosition h.promotionPositionSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "PromotionPosition", "(", "promotionPosition", "string", ")", "*", "Client", "{", "h", ".", "promotionPosition", "=", "promotionPosition", "\n", "h", ".", "promotionPositionSet", "=", "true", "\n", "return", "h", "\n", "...
// The position of the creative. Promotion index must be a // positive integer between 1 and 200, inclusive. For analytics.js // the Enhanced Ecommerce plugin must be installed before using // this field.
[ "The", "position", "of", "the", "creative", ".", "Promotion", "index", "must", "be", "a", "positive", "integer", "between", "1", "and", "200", "inclusive", ".", "For", "analytics", ".", "js", "the", "Enhanced", "Ecommerce", "plugin", "must", "be", "installed...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L1135-L1139
138,390
jpillora/go-ogle-analytics
type-client.go
PromotionAction
func (h *Client) PromotionAction(promotionAction string) *Client { h.promotionAction = promotionAction h.promotionActionSet = true return h }
go
func (h *Client) PromotionAction(promotionAction string) *Client { h.promotionAction = promotionAction h.promotionActionSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "PromotionAction", "(", "promotionAction", "string", ")", "*", "Client", "{", "h", ".", "promotionAction", "=", "promotionAction", "\n", "h", ".", "promotionActionSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// Specifies the role of the promotions included in a hit. // If a promotion action is not specified, the default promotion // action, 'view', is assumed. To measure a user click on a // promotion set this to 'promo_click'. For analytics.js the // Enhanced Ecommerce plugin must be installed before using // this field.
[ "Specifies", "the", "role", "of", "the", "promotions", "included", "in", "a", "hit", ".", "If", "a", "promotion", "action", "is", "not", "specified", "the", "default", "promotion", "action", "view", "is", "assumed", ".", "To", "measure", "a", "user", "clic...
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L1147-L1151
138,391
jpillora/go-ogle-analytics
type-client.go
ExperimentID
func (h *Client) ExperimentID(experimentID string) *Client { h.experimentID = experimentID h.experimentIDSet = true return h }
go
func (h *Client) ExperimentID(experimentID string) *Client { h.experimentID = experimentID h.experimentIDSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ExperimentID", "(", "experimentID", "string", ")", "*", "Client", "{", "h", ".", "experimentID", "=", "experimentID", "\n", "h", ".", "experimentIDSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// This parameter specifies that this user has been exposed // to an experiment with the given ID. It should be sent in // conjunction with the Experiment Variant parameter.
[ "This", "parameter", "specifies", "that", "this", "user", "has", "been", "exposed", "to", "an", "experiment", "with", "the", "given", "ID", ".", "It", "should", "be", "sent", "in", "conjunction", "with", "the", "Experiment", "Variant", "parameter", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L1175-L1179
138,392
jpillora/go-ogle-analytics
type-client.go
ExperimentVariant
func (h *Client) ExperimentVariant(experimentVariant string) *Client { h.experimentVariant = experimentVariant h.experimentVariantSet = true return h }
go
func (h *Client) ExperimentVariant(experimentVariant string) *Client { h.experimentVariant = experimentVariant h.experimentVariantSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ExperimentVariant", "(", "experimentVariant", "string", ")", "*", "Client", "{", "h", ".", "experimentVariant", "=", "experimentVariant", "\n", "h", ".", "experimentVariantSet", "=", "true", "\n", "return", "h", "\n", "...
// This parameter specifies that this user has been exposed // to a particular variation of an experiment. It should be // sent in conjunction with the Experiment ID parameter.
[ "This", "parameter", "specifies", "that", "this", "user", "has", "been", "exposed", "to", "a", "particular", "variation", "of", "an", "experiment", ".", "It", "should", "be", "sent", "in", "conjunction", "with", "the", "Experiment", "ID", "parameter", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L1184-L1188
138,393
jpillora/go-ogle-analytics
type-client.go
DimensionIndex
func (h *Client) DimensionIndex(dimensionIndex string) *Client { h.dimensionIndex = dimensionIndex h.dimensionIndexSet = true return h }
go
func (h *Client) DimensionIndex(dimensionIndex string) *Client { h.dimensionIndex = dimensionIndex h.dimensionIndexSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "DimensionIndex", "(", "dimensionIndex", "string", ")", "*", "Client", "{", "h", ".", "dimensionIndex", "=", "dimensionIndex", "\n", "h", ".", "dimensionIndexSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// DimensionIndex is required by other properties
[ "DimensionIndex", "is", "required", "by", "other", "properties" ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L1191-L1195
138,394
jpillora/go-ogle-analytics
type-client.go
ListIndex
func (h *Client) ListIndex(listIndex string) *Client { h.listIndex = listIndex h.listIndexSet = true return h }
go
func (h *Client) ListIndex(listIndex string) *Client { h.listIndex = listIndex h.listIndexSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ListIndex", "(", "listIndex", "string", ")", "*", "Client", "{", "h", ".", "listIndex", "=", "listIndex", "\n", "h", ".", "listIndexSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// ListIndex is required by other properties
[ "ListIndex", "is", "required", "by", "other", "properties" ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L1198-L1202
138,395
jpillora/go-ogle-analytics
type-client.go
MetricIndex
func (h *Client) MetricIndex(metricIndex string) *Client { h.metricIndex = metricIndex h.metricIndexSet = true return h }
go
func (h *Client) MetricIndex(metricIndex string) *Client { h.metricIndex = metricIndex h.metricIndexSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "MetricIndex", "(", "metricIndex", "string", ")", "*", "Client", "{", "h", ".", "metricIndex", "=", "metricIndex", "\n", "h", ".", "metricIndexSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// MetricIndex is required by other properties
[ "MetricIndex", "is", "required", "by", "other", "properties" ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L1205-L1209
138,396
jpillora/go-ogle-analytics
type-client.go
ProductIndex
func (h *Client) ProductIndex(productIndex string) *Client { h.productIndex = productIndex h.productIndexSet = true return h }
go
func (h *Client) ProductIndex(productIndex string) *Client { h.productIndex = productIndex h.productIndexSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "ProductIndex", "(", "productIndex", "string", ")", "*", "Client", "{", "h", ".", "productIndex", "=", "productIndex", "\n", "h", ".", "productIndexSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// ProductIndex is required by other properties
[ "ProductIndex", "is", "required", "by", "other", "properties" ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L1212-L1216
138,397
jpillora/go-ogle-analytics
type-client.go
PromoIndex
func (h *Client) PromoIndex(promoIndex string) *Client { h.promoIndex = promoIndex h.promoIndexSet = true return h }
go
func (h *Client) PromoIndex(promoIndex string) *Client { h.promoIndex = promoIndex h.promoIndexSet = true return h }
[ "func", "(", "h", "*", "Client", ")", "PromoIndex", "(", "promoIndex", "string", ")", "*", "Client", "{", "h", ".", "promoIndex", "=", "promoIndex", "\n", "h", ".", "promoIndexSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// PromoIndex is required by other properties
[ "PromoIndex", "is", "required", "by", "other", "properties" ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-client.go#L1219-L1223
138,398
jpillora/go-ogle-analytics
type-exception.go
Description
func (h *Exception) Description(description string) *Exception { h.description = description h.descriptionSet = true return h }
go
func (h *Exception) Description(description string) *Exception { h.description = description h.descriptionSet = true return h }
[ "func", "(", "h", "*", "Exception", ")", "Description", "(", "description", "string", ")", "*", "Exception", "{", "h", ".", "description", "=", "description", "\n", "h", ".", "descriptionSet", "=", "true", "\n", "return", "h", "\n", "}" ]
// Specifies the description of an exception.
[ "Specifies", "the", "description", "of", "an", "exception", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-exception.go#L33-L37
138,399
jpillora/go-ogle-analytics
type-exception.go
IsExceptionFatal
func (h *Exception) IsExceptionFatal(isExceptionFatal bool) *Exception { h.isExceptionFatal = isExceptionFatal h.isExceptionFatalSet = true return h }
go
func (h *Exception) IsExceptionFatal(isExceptionFatal bool) *Exception { h.isExceptionFatal = isExceptionFatal h.isExceptionFatalSet = true return h }
[ "func", "(", "h", "*", "Exception", ")", "IsExceptionFatal", "(", "isExceptionFatal", "bool", ")", "*", "Exception", "{", "h", ".", "isExceptionFatal", "=", "isExceptionFatal", "\n", "h", ".", "isExceptionFatalSet", "=", "true", "\n", "return", "h", "\n", "}...
// Specifies whether the exception was fatal.
[ "Specifies", "whether", "the", "exception", "was", "fatal", "." ]
14b04e0594ef6a9fd943363b135656f0ec8c9d0e
https://github.com/jpillora/go-ogle-analytics/blob/14b04e0594ef6a9fd943363b135656f0ec8c9d0e/type-exception.go#L40-L44