apps

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

Overview

Package apps provides all apps related types compiled from protobuf.

Index

Constants

This section is empty.

Variables

View Source
var File_apps_service_proto protoreflect.FileDescriptor

Functions

func RegisterAppsServiceServer

func RegisterAppsServiceServer(s *grpc.Server, srv AppsServiceServer)

Types

type App

type App struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

App represents a chromeOS app. More fields may be added as required.

func (*App) Descriptor deprecated

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

Deprecated: Use App.ProtoReflect.Descriptor instead.

func (*App) GetId

func (x *App) GetId() string

func (*App) GetName

func (x *App) GetName() string

func (*App) ProtoMessage

func (*App) ProtoMessage()

func (*App) ProtoReflect

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

func (*App) Reset

func (x *App) Reset()

func (*App) String

func (x *App) String() string

type AppsServiceClient

type AppsServiceClient interface {
	// LaunchApp requests to launch an app.
	LaunchApp(ctx context.Context, in *LaunchAppRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// GetPrimaryBrowser returns the app that is set to the primary browser.
	// This can be used to tell whether Lacros is enabled.
	GetPrimaryBrowser(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*App, error)
	// LaunchPrimaryBrowser launches the primary browser, and returns it.
	LaunchPrimaryBrowser(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*App, error)
}

AppsServiceClient is the client API for AppsService service.

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

type AppsServiceServer

type AppsServiceServer interface {
	// LaunchApp requests to launch an app.
	LaunchApp(context.Context, *LaunchAppRequest) (*empty.Empty, error)
	// GetPrimaryBrowser returns the app that is set to the primary browser.
	// This can be used to tell whether Lacros is enabled.
	GetPrimaryBrowser(context.Context, *empty.Empty) (*App, error)
	// LaunchPrimaryBrowser launches the primary browser, and returns it.
	LaunchPrimaryBrowser(context.Context, *empty.Empty) (*App, error)
}

AppsServiceServer is the server API for AppsService service.

type LaunchAppRequest

type LaunchAppRequest struct {
	AppName string `protobuf:"bytes,1,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"`
	// Defaults to 1 minute.
	TimeoutSecs int32 `protobuf:"varint,2,opt,name=timeout_secs,json=timeoutSecs,proto3" json:"timeout_secs,omitempty"`
	// contains filtered or unexported fields
}

LaunchAppRequest requests starting an app.

func (*LaunchAppRequest) Descriptor deprecated

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

Deprecated: Use LaunchAppRequest.ProtoReflect.Descriptor instead.

func (*LaunchAppRequest) GetAppName

func (x *LaunchAppRequest) GetAppName() string

func (*LaunchAppRequest) GetTimeoutSecs

func (x *LaunchAppRequest) GetTimeoutSecs() int32

func (*LaunchAppRequest) ProtoMessage

func (*LaunchAppRequest) ProtoMessage()

func (*LaunchAppRequest) ProtoReflect

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

func (*LaunchAppRequest) Reset

func (x *LaunchAppRequest) Reset()

func (*LaunchAppRequest) String

func (x *LaunchAppRequest) String() string

type UnimplementedAppsServiceServer

type UnimplementedAppsServiceServer struct {
}

UnimplementedAppsServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAppsServiceServer) GetPrimaryBrowser

func (*UnimplementedAppsServiceServer) LaunchApp

func (*UnimplementedAppsServiceServer) LaunchPrimaryBrowser

func (*UnimplementedAppsServiceServer) LaunchPrimaryBrowser(context.Context, *empty.Empty) (*App, error)

Jump to

Keyboard shortcuts

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