cdproto: github.com/chromedp/cdproto/database Index | Files

package database

import "github.com/chromedp/cdproto/database"

Package database provides the Chrome DevTools Protocol commands, types, and events for the Database domain.

Generated by the cdproto-gen command.

Index

Package Files

database.go easyjson.go events.go types.go

Constants

const (
    CommandDisable               = "Database.disable"
    CommandEnable                = "Database.enable"
    CommandExecuteSQL            = "Database.executeSQL"
    CommandGetDatabaseTableNames = "Database.getDatabaseTableNames"
)

Command names.

type Database Uses

type Database struct {
    ID      ID     `json:"id"`      // Database ID.
    Domain  string `json:"domain"`  // Database domain.
    Name    string `json:"name"`    // Database name.
    Version string `json:"version"` // Database version.
}

Database database object.

See: https://chromedevtools.github.io/devtools-protocol/tot/Database#type-Database

func (Database) MarshalEasyJSON Uses

func (v Database) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Database) MarshalJSON Uses

func (v Database) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Database) UnmarshalEasyJSON Uses

func (v *Database) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Database) UnmarshalJSON Uses

func (v *Database) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DisableParams Uses

type DisableParams struct{}

DisableParams disables database tracking, prevents database events from being sent to the client.

func Disable Uses

func Disable() *DisableParams

Disable disables database tracking, prevents database events from being sent to the client.

See: https://chromedevtools.github.io/devtools-protocol/tot/Database#method-disable

func (*DisableParams) Do Uses

func (p *DisableParams) Do(ctx context.Context) (err error)

Do executes Database.disable against the provided context.

func (DisableParams) MarshalEasyJSON Uses

func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON Uses

func (v DisableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON Uses

func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON Uses

func (v *DisableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams Uses

type EnableParams struct{}

EnableParams enables database tracking, database events will now be delivered to the client.

func Enable Uses

func Enable() *EnableParams

Enable enables database tracking, database events will now be delivered to the client.

See: https://chromedevtools.github.io/devtools-protocol/tot/Database#method-enable

func (*EnableParams) Do Uses

func (p *EnableParams) Do(ctx context.Context) (err error)

Do executes Database.enable against the provided context.

func (EnableParams) MarshalEasyJSON Uses

func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON Uses

func (v EnableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON Uses

func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON Uses

func (v *EnableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Error Uses

type Error struct {
    Message string `json:"message"` // Error message.
    Code    int64  `json:"code"`    // Error code.
}

Error database error.

See: https://chromedevtools.github.io/devtools-protocol/tot/Database#type-Error

func (Error) MarshalEasyJSON Uses

func (v Error) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Error) MarshalJSON Uses

func (v Error) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Error) UnmarshalEasyJSON Uses

func (v *Error) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Error) UnmarshalJSON Uses

func (v *Error) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventAddDatabase Uses

type EventAddDatabase struct {
    Database *Database `json:"database"`
}

EventAddDatabase [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Database#event-addDatabase

func (EventAddDatabase) MarshalEasyJSON Uses

func (v EventAddDatabase) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAddDatabase) MarshalJSON Uses

func (v EventAddDatabase) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventAddDatabase) UnmarshalEasyJSON Uses

func (v *EventAddDatabase) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAddDatabase) UnmarshalJSON Uses

func (v *EventAddDatabase) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ExecuteSQLParams Uses

type ExecuteSQLParams struct {
    DatabaseID ID     `json:"databaseId"`
    Query      string `json:"query"`
}

ExecuteSQLParams [no description].

func ExecuteSQL Uses

func ExecuteSQL(databaseID ID, query string) *ExecuteSQLParams

ExecuteSQL [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Database#method-executeSQL

parameters:

databaseID
query

func (*ExecuteSQLParams) Do Uses

func (p *ExecuteSQLParams) Do(ctx context.Context) (columnNames []string, values []easyjson.RawMessage, sqlError *Error, err error)

Do executes Database.executeSQL against the provided context.

returns:

columnNames
values
sqlError

func (ExecuteSQLParams) MarshalEasyJSON Uses

func (v ExecuteSQLParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ExecuteSQLParams) MarshalJSON Uses

func (v ExecuteSQLParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ExecuteSQLParams) UnmarshalEasyJSON Uses

func (v *ExecuteSQLParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ExecuteSQLParams) UnmarshalJSON Uses

func (v *ExecuteSQLParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ExecuteSQLReturns Uses

type ExecuteSQLReturns struct {
    ColumnNames []string              `json:"columnNames,omitempty"`
    Values      []easyjson.RawMessage `json:"values,omitempty"`
    SQLError    *Error                `json:"sqlError,omitempty"`
}

ExecuteSQLReturns return values.

func (ExecuteSQLReturns) MarshalEasyJSON Uses

func (v ExecuteSQLReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ExecuteSQLReturns) MarshalJSON Uses

func (v ExecuteSQLReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ExecuteSQLReturns) UnmarshalEasyJSON Uses

func (v *ExecuteSQLReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ExecuteSQLReturns) UnmarshalJSON Uses

func (v *ExecuteSQLReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetDatabaseTableNamesParams Uses

type GetDatabaseTableNamesParams struct {
    DatabaseID ID `json:"databaseId"`
}

GetDatabaseTableNamesParams [no description].

func GetDatabaseTableNames Uses

func GetDatabaseTableNames(databaseID ID) *GetDatabaseTableNamesParams

GetDatabaseTableNames [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Database#method-getDatabaseTableNames

parameters:

databaseID

func (*GetDatabaseTableNamesParams) Do Uses

func (p *GetDatabaseTableNamesParams) Do(ctx context.Context) (tableNames []string, err error)

Do executes Database.getDatabaseTableNames against the provided context.

returns:

tableNames

func (GetDatabaseTableNamesParams) MarshalEasyJSON Uses

func (v GetDatabaseTableNamesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetDatabaseTableNamesParams) MarshalJSON Uses

func (v GetDatabaseTableNamesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetDatabaseTableNamesParams) UnmarshalEasyJSON Uses

func (v *GetDatabaseTableNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetDatabaseTableNamesParams) UnmarshalJSON Uses

func (v *GetDatabaseTableNamesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetDatabaseTableNamesReturns Uses

type GetDatabaseTableNamesReturns struct {
    TableNames []string `json:"tableNames,omitempty"`
}

GetDatabaseTableNamesReturns return values.

func (GetDatabaseTableNamesReturns) MarshalEasyJSON Uses

func (v GetDatabaseTableNamesReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetDatabaseTableNamesReturns) MarshalJSON Uses

func (v GetDatabaseTableNamesReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetDatabaseTableNamesReturns) UnmarshalEasyJSON Uses

func (v *GetDatabaseTableNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetDatabaseTableNamesReturns) UnmarshalJSON Uses

func (v *GetDatabaseTableNamesReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ID Uses

type ID string

ID unique identifier of Database object.

See: https://chromedevtools.github.io/devtools-protocol/tot/Database#type-DatabaseId

func (ID) String Uses

func (t ID) String() string

String returns the ID as string value.

Package database imports 6 packages (graph) and is imported by 3 packages. Updated 2021-01-08. Refresh now. Tools for package owners.