bootstrap

package
v0.0.0-...-b63aa1a Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterService

func RegisterService(s giraffe_micro.Server, srv Service)

Types

type BootstrapRequest

type BootstrapRequest struct {
	//
	//是否需要检查登录态
	CheckLogin           bool     `protobuf:"varint,1,opt,name=check_login,json=checkLogin,proto3" json:"check_login" form:"check_login"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Bootstrap请求

func (*BootstrapRequest) Descriptor

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

func (*BootstrapRequest) GetCheckLogin

func (m *BootstrapRequest) GetCheckLogin() bool

func (*BootstrapRequest) ProtoMessage

func (*BootstrapRequest) ProtoMessage()

func (*BootstrapRequest) Reset

func (m *BootstrapRequest) Reset()

func (*BootstrapRequest) String

func (m *BootstrapRequest) String() string

func (*BootstrapRequest) Validate

func (this *BootstrapRequest) Validate() error

func (*BootstrapRequest) XXX_DiscardUnknown

func (m *BootstrapRequest) XXX_DiscardUnknown()

func (*BootstrapRequest) XXX_Marshal

func (m *BootstrapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BootstrapRequest) XXX_Merge

func (m *BootstrapRequest) XXX_Merge(src proto.Message)

func (*BootstrapRequest) XXX_Size

func (m *BootstrapRequest) XXX_Size() int

func (*BootstrapRequest) XXX_Unmarshal

func (m *BootstrapRequest) XXX_Unmarshal(b []byte) error

type BootstrapResponse

type BootstrapResponse struct {
	//
	//${BRICK_NEXT}/packages/brick-container/conf/navbar.json 的内容
	Navbar *types.Struct `protobuf:"bytes,1,opt,name=navbar,proto3" json:"navbar" form:"navbar"`
	//
	//${BRICK_NEXT}/packages/brick-container/conf/storyboards/ *.json 的内容列表
	Storyboards []*auth.StoryBoard `protobuf:"bytes,2,rep,name=storyboards,proto3" json:"storyboards" form:"storyboards"`
	//
	//${BRICK_NEXT}/bricks/ * /dist/ 的内容
	BrickPackages []*types.Struct `protobuf:"bytes,3,rep,name=brickPackages,proto3" json:"brickPackages" form:"brickPackages"`
	//
	//console特性配置
	Settings *auth.Settings `protobuf:"bytes,4,opt,name=settings,proto3" json:"settings" form:"settings"`
	//
	//桌面列表
	Desktops             []*auth.Desktop `protobuf:"bytes,5,rep,name=desktops,proto3" json:"desktops" form:"desktops"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

Bootstrap返回

func (*BootstrapResponse) Descriptor

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

func (*BootstrapResponse) GetBrickPackages

func (m *BootstrapResponse) GetBrickPackages() []*types.Struct

func (*BootstrapResponse) GetDesktops

func (m *BootstrapResponse) GetDesktops() []*auth.Desktop

func (*BootstrapResponse) GetNavbar

func (m *BootstrapResponse) GetNavbar() *types.Struct

func (*BootstrapResponse) GetSettings

func (m *BootstrapResponse) GetSettings() *auth.Settings

func (*BootstrapResponse) GetStoryboards

func (m *BootstrapResponse) GetStoryboards() []*auth.StoryBoard

func (*BootstrapResponse) ProtoMessage

func (*BootstrapResponse) ProtoMessage()

func (*BootstrapResponse) Reset

func (m *BootstrapResponse) Reset()

func (*BootstrapResponse) String

func (m *BootstrapResponse) String() string

func (*BootstrapResponse) Validate

func (this *BootstrapResponse) Validate() error

func (*BootstrapResponse) XXX_DiscardUnknown

func (m *BootstrapResponse) XXX_DiscardUnknown()

func (*BootstrapResponse) XXX_Marshal

func (m *BootstrapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BootstrapResponse) XXX_Merge

func (m *BootstrapResponse) XXX_Merge(src proto.Message)

func (*BootstrapResponse) XXX_Size

func (m *BootstrapResponse) XXX_Size() int

func (*BootstrapResponse) XXX_Unmarshal

func (m *BootstrapResponse) XXX_Unmarshal(b []byte) error

type BootstrapResponseWrapper

type BootstrapResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *BootstrapResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

BootstrapApi返回

func (*BootstrapResponseWrapper) Descriptor

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

func (*BootstrapResponseWrapper) GetCode

func (m *BootstrapResponseWrapper) GetCode() int32

func (*BootstrapResponseWrapper) GetCodeExplain

func (m *BootstrapResponseWrapper) GetCodeExplain() string

func (*BootstrapResponseWrapper) GetData

func (*BootstrapResponseWrapper) GetError

func (m *BootstrapResponseWrapper) GetError() string

func (*BootstrapResponseWrapper) ProtoMessage

func (*BootstrapResponseWrapper) ProtoMessage()

func (*BootstrapResponseWrapper) Reset

func (m *BootstrapResponseWrapper) Reset()

func (*BootstrapResponseWrapper) String

func (m *BootstrapResponseWrapper) String() string

func (*BootstrapResponseWrapper) Validate

func (this *BootstrapResponseWrapper) Validate() error

func (*BootstrapResponseWrapper) XXX_DiscardUnknown

func (m *BootstrapResponseWrapper) XXX_DiscardUnknown()

func (*BootstrapResponseWrapper) XXX_Marshal

func (m *BootstrapResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BootstrapResponseWrapper) XXX_Merge

func (m *BootstrapResponseWrapper) XXX_Merge(src proto.Message)

func (*BootstrapResponseWrapper) XXX_Size

func (m *BootstrapResponseWrapper) XXX_Size() int

func (*BootstrapResponseWrapper) XXX_Unmarshal

func (m *BootstrapResponseWrapper) XXX_Unmarshal(b []byte) error

type Client

type Client interface {
	Bootstrap(ctx context.Context, in *BootstrapRequest) (*BootstrapResponse, error)
}

Client is the client API for bootstrap service.

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

func NewClient

func NewClient(c giraffe_micro.Client) Client

type Service

type Service interface {
	Bootstrap(context.Context, *BootstrapRequest) (*BootstrapResponse, error)
}

Service is the server API for bootstrap service.

Jump to

Keyboard shortcuts

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