grpc

package
v4.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Package grpc is in charge of detecting updates and applying them

Index

Constants

This section is empty.

Variables

View Source
var ExposedConfigs = &forms.Form{
	I18NBundle: lang.Bundle(),
	Groups: []*forms.Group{{
		Label: "Update.Config.Title",
		Fields: []forms.Field{
			&forms.FormField{
				Name:        "channel",
				Type:        forms.ParamSelect,
				Label:       "Update.Config.Channel.Label",
				Description: "Update.Config.Channel.Description",
				ChoicePresetList: []map[string]string{
					{"stable": "Update.Config.Channel.ValueStable"},
					{"dev": "Update.Config.Channel.ValueDev"},
				},
				Default:   common.UpdateDefaultChannel,
				Mandatory: true,
			},
			&forms.FormField{
				Name:        "disableChecks",
				Type:        forms.ParamBool,
				Label:       "Update.Config.Disable.Label",
				Description: "Update.Config.Disable.Description",
				Default:     false,
			},
		},
	}},
}

Functions

This section is empty.

Types

type Handler

type Handler struct {
	update.UnimplementedUpdateServiceServer
}

func (*Handler) ApplyUpdate

func (h *Handler) ApplyUpdate(ctx context.Context, request *update.ApplyUpdateRequest) (*update.ApplyUpdateResponse, error)

func (*Handler) Name

func (h *Handler) Name() string

func (*Handler) UpdateRequired

func (h *Handler) UpdateRequired(ctx context.Context, request *update.UpdateRequest) (*update.UpdateResponse, error)

Jump to

Keyboard shortcuts

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