remoteweb

package
v0.0.0-...-0b10f05 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_remoteweb_proto protoreflect.FileDescriptor
View Source
var RemoteWeb_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "remoteweb.RemoteWeb",
	HandlerType: (*RemoteWebServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Page",
			Handler:    _RemoteWeb_Page_Handler,
		},
		{
			MethodName: "AdminPage",
			Handler:    _RemoteWeb_AdminPage_Handler,
		},
		{
			MethodName: "File",
			Handler:    _RemoteWeb_File_Handler,
		},
		{
			MethodName: "WebSocket",
			Handler:    _RemoteWeb_WebSocket_Handler,
		},
		{
			MethodName: "Tasks",
			Handler:    _RemoteWeb_Tasks_Handler,
		},
		{
			MethodName: "Notifications",
			Handler:    _RemoteWeb_Notifications_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "remoteweb.proto",
}

RemoteWeb_ServiceDesc is the grpc.ServiceDesc for RemoteWeb service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterRemoteWebServer

func RegisterRemoteWebServer(s grpc.ServiceRegistrar, srv RemoteWebServer)

Types

type FileRequest

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

func (*FileRequest) Descriptor deprecated

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

Deprecated: Use FileRequest.ProtoReflect.Descriptor instead.

func (*FileRequest) GetPath

func (x *FileRequest) GetPath() string

func (*FileRequest) ProtoMessage

func (*FileRequest) ProtoMessage()

func (*FileRequest) ProtoReflect

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

func (*FileRequest) Reset

func (x *FileRequest) Reset()

func (*FileRequest) String

func (x *FileRequest) String() string

type FileResponse

type FileResponse struct {
	StatusCode   uint32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
	ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	File         []byte `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"`
	// contains filtered or unexported fields
}

func (*FileResponse) Descriptor deprecated

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

Deprecated: Use FileResponse.ProtoReflect.Descriptor instead.

func (*FileResponse) GetErrorMessage

func (x *FileResponse) GetErrorMessage() string

func (*FileResponse) GetFile

func (x *FileResponse) GetFile() []byte

func (*FileResponse) GetStatusCode

func (x *FileResponse) GetStatusCode() uint32

func (*FileResponse) ProtoMessage

func (*FileResponse) ProtoMessage()

func (*FileResponse) ProtoReflect

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

func (*FileResponse) Reset

func (x *FileResponse) Reset()

func (*FileResponse) String

func (x *FileResponse) String() string

type NotificationsRequest

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

func (*NotificationsRequest) Descriptor deprecated

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

Deprecated: Use NotificationsRequest.ProtoReflect.Descriptor instead.

func (*NotificationsRequest) ProtoMessage

func (*NotificationsRequest) ProtoMessage()

func (*NotificationsRequest) ProtoReflect

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

func (*NotificationsRequest) Reset

func (x *NotificationsRequest) Reset()

func (*NotificationsRequest) String

func (x *NotificationsRequest) String() string

type NotificationsResponse

type NotificationsResponse struct {
	Success       bool                       `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	ErrorMessage  string                     `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	Notifications []*web.NotificationMessage `protobuf:"bytes,3,rep,name=notifications,proto3" json:"notifications,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationsResponse) Descriptor deprecated

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

Deprecated: Use NotificationsResponse.ProtoReflect.Descriptor instead.

func (*NotificationsResponse) GetErrorMessage

func (x *NotificationsResponse) GetErrorMessage() string

func (*NotificationsResponse) GetNotifications

func (x *NotificationsResponse) GetNotifications() []*web.NotificationMessage

func (*NotificationsResponse) GetSuccess

func (x *NotificationsResponse) GetSuccess() bool

func (*NotificationsResponse) ProtoMessage

func (*NotificationsResponse) ProtoMessage()

func (*NotificationsResponse) ProtoReflect

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

func (*NotificationsResponse) Reset

func (x *NotificationsResponse) Reset()

func (*NotificationsResponse) String

func (x *NotificationsResponse) String() string

type PageRequest

type PageRequest struct {
	Path            string    `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	BasePath        string    `protobuf:"bytes,2,opt,name=base_path,json=basePath,proto3" json:"base_path,omitempty"`
	User            *UserData `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	Method          string    `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"`
	QueryParamsJson string    `protobuf:"bytes,5,opt,name=query_params_json,json=queryParamsJson,proto3" json:"query_params_json,omitempty"`
	PostJson        string    `protobuf:"bytes,6,opt,name=post_json,json=postJson,proto3" json:"post_json,omitempty"`
	PathParamsJson  string    `protobuf:"bytes,7,opt,name=path_params_json,json=pathParamsJson,proto3" json:"path_params_json,omitempty"`
	// contains filtered or unexported fields
}

func (*PageRequest) Descriptor deprecated

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

Deprecated: Use PageRequest.ProtoReflect.Descriptor instead.

func (*PageRequest) GetBasePath

func (x *PageRequest) GetBasePath() string

func (*PageRequest) GetMethod

func (x *PageRequest) GetMethod() string

func (*PageRequest) GetPath

func (x *PageRequest) GetPath() string

func (*PageRequest) GetPathParamsJson

func (x *PageRequest) GetPathParamsJson() string

func (*PageRequest) GetPostJson

func (x *PageRequest) GetPostJson() string

func (*PageRequest) GetQueryParamsJson

func (x *PageRequest) GetQueryParamsJson() string

func (*PageRequest) GetUser

func (x *PageRequest) GetUser() *UserData

func (*PageRequest) ProtoMessage

func (*PageRequest) ProtoMessage()

func (*PageRequest) ProtoReflect

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

func (*PageRequest) Reset

func (x *PageRequest) Reset()

func (*PageRequest) String

func (x *PageRequest) String() string

type PageResponse

type PageResponse struct {
	StatusCode        uint32   `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
	HideErrorFromUser bool     `protobuf:"varint,2,opt,name=hide_error_from_user,json=hideErrorFromUser,proto3" json:"hide_error_from_user,omitempty"`
	ErrorMessage      string   `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	RedirectUrl       string   `protobuf:"bytes,4,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url,omitempty"`
	TemplateHtml      string   `protobuf:"bytes,5,opt,name=template_html,json=templateHtml,proto3" json:"template_html,omitempty"`
	PageVariablesJson string   `protobuf:"bytes,6,opt,name=page_variables_json,json=pageVariablesJson,proto3" json:"page_variables_json,omitempty"`
	CustomPageName    string   `protobuf:"bytes,7,opt,name=custom_page_name,json=customPageName,proto3" json:"custom_page_name,omitempty"`
	CustomCss         []string `protobuf:"bytes,8,rep,name=custom_css,json=customCss,proto3" json:"custom_css,omitempty"`
	CustomJs          []string `protobuf:"bytes,9,rep,name=custom_js,json=customJs,proto3" json:"custom_js,omitempty"`
	// contains filtered or unexported fields
}

func (*PageResponse) Descriptor deprecated

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

Deprecated: Use PageResponse.ProtoReflect.Descriptor instead.

func (*PageResponse) GetCustomCss

func (x *PageResponse) GetCustomCss() []string

func (*PageResponse) GetCustomJs

func (x *PageResponse) GetCustomJs() []string

func (*PageResponse) GetCustomPageName

func (x *PageResponse) GetCustomPageName() string

func (*PageResponse) GetErrorMessage

func (x *PageResponse) GetErrorMessage() string

func (*PageResponse) GetHideErrorFromUser

func (x *PageResponse) GetHideErrorFromUser() bool

func (*PageResponse) GetPageVariablesJson

func (x *PageResponse) GetPageVariablesJson() string

func (*PageResponse) GetRedirectUrl

func (x *PageResponse) GetRedirectUrl() string

func (*PageResponse) GetStatusCode

func (x *PageResponse) GetStatusCode() uint32

func (*PageResponse) GetTemplateHtml

func (x *PageResponse) GetTemplateHtml() string

func (*PageResponse) ProtoMessage

func (*PageResponse) ProtoMessage()

func (*PageResponse) ProtoReflect

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

func (*PageResponse) Reset

func (x *PageResponse) Reset()

func (*PageResponse) String

func (x *PageResponse) String() string

type RemoteWebClient

type RemoteWebClient interface {
	Page(ctx context.Context, in *PageRequest, opts ...grpc.CallOption) (*PageResponse, error)
	AdminPage(ctx context.Context, in *PageRequest, opts ...grpc.CallOption) (*PageResponse, error)
	File(ctx context.Context, in *FileRequest, opts ...grpc.CallOption) (*FileResponse, error)
	WebSocket(ctx context.Context, in *WebSocketRequest, opts ...grpc.CallOption) (*WebSocketResponse, error)
	Tasks(ctx context.Context, in *TasksRequest, opts ...grpc.CallOption) (*TasksResponse, error)
	Notifications(ctx context.Context, in *NotificationsRequest, opts ...grpc.CallOption) (*NotificationsResponse, error)
}

RemoteWebClient is the client API for RemoteWeb service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewRemoteWebClient

func NewRemoteWebClient(cc grpc.ClientConnInterface) RemoteWebClient

type RemoteWebServer

type RemoteWebServer interface {
	Page(context.Context, *PageRequest) (*PageResponse, error)
	AdminPage(context.Context, *PageRequest) (*PageResponse, error)
	File(context.Context, *FileRequest) (*FileResponse, error)
	WebSocket(context.Context, *WebSocketRequest) (*WebSocketResponse, error)
	Tasks(context.Context, *TasksRequest) (*TasksResponse, error)
	Notifications(context.Context, *NotificationsRequest) (*NotificationsResponse, error)
	// contains filtered or unexported methods
}

RemoteWebServer is the server API for RemoteWeb service. All implementations must embed UnimplementedRemoteWebServer for forward compatibility

type TasksRequest

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

func (*TasksRequest) Descriptor deprecated

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

Deprecated: Use TasksRequest.ProtoReflect.Descriptor instead.

func (*TasksRequest) ProtoMessage

func (*TasksRequest) ProtoMessage()

func (*TasksRequest) ProtoReflect

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

func (*TasksRequest) Reset

func (x *TasksRequest) Reset()

func (*TasksRequest) String

func (x *TasksRequest) String() string

type TasksResponse

type TasksResponse struct {
	Success      bool               `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	ErrorMessage string             `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	Tasks        []*web.TaskMessage `protobuf:"bytes,3,rep,name=tasks,proto3" json:"tasks,omitempty"`
	// contains filtered or unexported fields
}

func (*TasksResponse) Descriptor deprecated

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

Deprecated: Use TasksResponse.ProtoReflect.Descriptor instead.

func (*TasksResponse) GetErrorMessage

func (x *TasksResponse) GetErrorMessage() string

func (*TasksResponse) GetSuccess

func (x *TasksResponse) GetSuccess() bool

func (*TasksResponse) GetTasks

func (x *TasksResponse) GetTasks() []*web.TaskMessage

func (*TasksResponse) ProtoMessage

func (*TasksResponse) ProtoMessage()

func (*TasksResponse) ProtoReflect

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

func (*TasksResponse) Reset

func (x *TasksResponse) Reset()

func (*TasksResponse) String

func (x *TasksResponse) String() string

type UnimplementedRemoteWebServer

type UnimplementedRemoteWebServer struct {
}

UnimplementedRemoteWebServer must be embedded to have forward compatible implementations.

func (UnimplementedRemoteWebServer) AdminPage

func (UnimplementedRemoteWebServer) File

func (UnimplementedRemoteWebServer) Notifications

func (UnimplementedRemoteWebServer) Page

func (UnimplementedRemoteWebServer) Tasks

func (UnimplementedRemoteWebServer) WebSocket

type UnsafeRemoteWebServer

type UnsafeRemoteWebServer interface {
	// contains filtered or unexported methods
}

UnsafeRemoteWebServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RemoteWebServer will result in compilation errors.

type UserData

type UserData struct {
	UserId      uint64   `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Name        string   `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	Icon        string   `protobuf:"bytes,3,opt,name=Icon,proto3" json:"Icon,omitempty"`
	IsAdmin     bool     `protobuf:"varint,4,opt,name=IsAdmin,proto3" json:"IsAdmin,omitempty"`
	Permissions []string `protobuf:"bytes,5,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// contains filtered or unexported fields
}

func (*UserData) Descriptor deprecated

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

Deprecated: Use UserData.ProtoReflect.Descriptor instead.

func (*UserData) GetIcon

func (x *UserData) GetIcon() string

func (*UserData) GetIsAdmin

func (x *UserData) GetIsAdmin() bool

func (*UserData) GetName

func (x *UserData) GetName() string

func (*UserData) GetPermissions

func (x *UserData) GetPermissions() []string

func (*UserData) GetUserId

func (x *UserData) GetUserId() uint64

func (*UserData) ProtoMessage

func (*UserData) ProtoMessage()

func (*UserData) ProtoReflect

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

func (*UserData) Reset

func (x *UserData) Reset()

func (*UserData) String

func (x *UserData) String() string

type WebSocketRequest

type WebSocketRequest struct {
	Command  string    `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
	User     *UserData `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	DataJson string    `protobuf:"bytes,3,opt,name=data_json,json=dataJson,proto3" json:"data_json,omitempty"`
	// contains filtered or unexported fields
}

func (*WebSocketRequest) Descriptor deprecated

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

Deprecated: Use WebSocketRequest.ProtoReflect.Descriptor instead.

func (*WebSocketRequest) GetCommand

func (x *WebSocketRequest) GetCommand() string

func (*WebSocketRequest) GetDataJson

func (x *WebSocketRequest) GetDataJson() string

func (*WebSocketRequest) GetUser

func (x *WebSocketRequest) GetUser() *UserData

func (*WebSocketRequest) ProtoMessage

func (*WebSocketRequest) ProtoMessage()

func (*WebSocketRequest) ProtoReflect

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

func (*WebSocketRequest) Reset

func (x *WebSocketRequest) Reset()

func (*WebSocketRequest) String

func (x *WebSocketRequest) String() string

type WebSocketResponse

type WebSocketResponse struct {
	StatusCode        uint32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
	HideErrorFromUser bool   `protobuf:"varint,2,opt,name=hide_error_from_user,json=hideErrorFromUser,proto3" json:"hide_error_from_user,omitempty"`
	ErrorMessage      string `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	TellAll           bool   `protobuf:"varint,4,opt,name=tell_all,json=tellAll,proto3" json:"tell_all,omitempty"`
	DataJson          string `protobuf:"bytes,5,opt,name=data_json,json=dataJson,proto3" json:"data_json,omitempty"`
	// contains filtered or unexported fields
}

func (*WebSocketResponse) Descriptor deprecated

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

Deprecated: Use WebSocketResponse.ProtoReflect.Descriptor instead.

func (*WebSocketResponse) GetDataJson

func (x *WebSocketResponse) GetDataJson() string

func (*WebSocketResponse) GetErrorMessage

func (x *WebSocketResponse) GetErrorMessage() string

func (*WebSocketResponse) GetHideErrorFromUser

func (x *WebSocketResponse) GetHideErrorFromUser() bool

func (*WebSocketResponse) GetStatusCode

func (x *WebSocketResponse) GetStatusCode() uint32

func (*WebSocketResponse) GetTellAll

func (x *WebSocketResponse) GetTellAll() bool

func (*WebSocketResponse) ProtoMessage

func (*WebSocketResponse) ProtoMessage()

func (*WebSocketResponse) ProtoReflect

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

func (*WebSocketResponse) Reset

func (x *WebSocketResponse) Reset()

func (*WebSocketResponse) String

func (x *WebSocketResponse) String() string

Jump to

Keyboard shortcuts

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