example

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_sample_chrome_service_proto protoreflect.FileDescriptor

Functions

func RegisterChromeServiceServer

func RegisterChromeServiceServer(s *grpc.Server, srv ChromeServiceServer)

Types

type ChromeServiceClient

type ChromeServiceClient interface {
	// New logs into a Chrome session as a fake user. Close must be called later
	// to clean up the associated resources.
	New(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
	// Close releases the resources obtained by New.
	Close(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
	// EvalOnTestAPIConn evaluates a JavaScript expression in the test extension
	// background page.
	EvalOnTestAPIConn(ctx context.Context, in *EvalOnTestAPIConnRequest, opts ...grpc.CallOption) (*EvalOnTestAPIConnResponse, error)
}

ChromeServiceClient is the client API for ChromeService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ChromeServiceServer

type ChromeServiceServer interface {
	// New logs into a Chrome session as a fake user. Close must be called later
	// to clean up the associated resources.
	New(context.Context, *empty.Empty) (*empty.Empty, error)
	// Close releases the resources obtained by New.
	Close(context.Context, *empty.Empty) (*empty.Empty, error)
	// EvalOnTestAPIConn evaluates a JavaScript expression in the test extension
	// background page.
	EvalOnTestAPIConn(context.Context, *EvalOnTestAPIConnRequest) (*EvalOnTestAPIConnResponse, error)
}

ChromeServiceServer is the server API for ChromeService service.

type EvalOnTestAPIConnRequest

type EvalOnTestAPIConnRequest struct {
	Expr string `protobuf:"bytes,1,opt,name=expr,proto3" json:"expr,omitempty"`
	// contains filtered or unexported fields
}

func (*EvalOnTestAPIConnRequest) Descriptor deprecated

func (*EvalOnTestAPIConnRequest) Descriptor() ([]byte, []int)

Deprecated: Use EvalOnTestAPIConnRequest.ProtoReflect.Descriptor instead.

func (*EvalOnTestAPIConnRequest) GetExpr

func (x *EvalOnTestAPIConnRequest) GetExpr() string

func (*EvalOnTestAPIConnRequest) ProtoMessage

func (*EvalOnTestAPIConnRequest) ProtoMessage()

func (*EvalOnTestAPIConnRequest) ProtoReflect

func (x *EvalOnTestAPIConnRequest) ProtoReflect() protoreflect.Message

func (*EvalOnTestAPIConnRequest) Reset

func (x *EvalOnTestAPIConnRequest) Reset()

func (*EvalOnTestAPIConnRequest) String

func (x *EvalOnTestAPIConnRequest) String() string

type EvalOnTestAPIConnResponse

type EvalOnTestAPIConnResponse struct {
	ValueJson string `protobuf:"bytes,1,opt,name=value_json,json=valueJson,proto3" json:"value_json,omitempty"`
	// contains filtered or unexported fields
}

func (*EvalOnTestAPIConnResponse) Descriptor deprecated

func (*EvalOnTestAPIConnResponse) Descriptor() ([]byte, []int)

Deprecated: Use EvalOnTestAPIConnResponse.ProtoReflect.Descriptor instead.

func (*EvalOnTestAPIConnResponse) GetValueJson

func (x *EvalOnTestAPIConnResponse) GetValueJson() string

func (*EvalOnTestAPIConnResponse) ProtoMessage

func (*EvalOnTestAPIConnResponse) ProtoMessage()

func (*EvalOnTestAPIConnResponse) ProtoReflect

func (*EvalOnTestAPIConnResponse) Reset

func (x *EvalOnTestAPIConnResponse) Reset()

func (*EvalOnTestAPIConnResponse) String

func (x *EvalOnTestAPIConnResponse) String() string

type UnimplementedChromeServiceServer

type UnimplementedChromeServiceServer struct {
}

UnimplementedChromeServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedChromeServiceServer) Close

func (*UnimplementedChromeServiceServer) EvalOnTestAPIConn

func (*UnimplementedChromeServiceServer) New

Jump to

Keyboard shortcuts

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