views

package
v0.7.0-beta Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAssetNotFound = errors.New("asset not found")

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts ClientOptions) (*Client, error)

func (*Client) GetTotalViews

func (c *Client) GetTotalViews(ctx context.Context, id string) ([]TotalViews, error)

type ClientOptions

type ClientOptions struct {
	Prometheus              promClient.Config
	Livepeer                livepeer.ClientOptions
	BigQueryCredentialsJSON string
}

type TotalViews

type TotalViews struct {
	ID         string `json:"id"`
	StartViews int64  `json:"startViews"`
	ViewCount  int64  `json:"viewCount"`
	PlaytimeMs int64  `json:"playtimeMs"`
}

Jump to

Keyboard shortcuts

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