Documentation
¶
Index ¶
- func RegisterService(s giraffe_micro.Server, srv Service)
- type BootstrapRequest
- func (*BootstrapRequest) Descriptor() ([]byte, []int)
- func (m *BootstrapRequest) GetCheckLogin() bool
- func (*BootstrapRequest) ProtoMessage()
- func (m *BootstrapRequest) Reset()
- func (m *BootstrapRequest) String() string
- func (this *BootstrapRequest) Validate() error
- func (m *BootstrapRequest) XXX_DiscardUnknown()
- func (m *BootstrapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BootstrapRequest) XXX_Merge(src proto.Message)
- func (m *BootstrapRequest) XXX_Size() int
- func (m *BootstrapRequest) XXX_Unmarshal(b []byte) error
- type BootstrapResponse
- func (*BootstrapResponse) Descriptor() ([]byte, []int)
- func (m *BootstrapResponse) GetBrickPackages() []*types.Struct
- func (m *BootstrapResponse) GetDesktops() []*api_gateway.Desktop
- func (m *BootstrapResponse) GetNavbar() *types.Struct
- func (m *BootstrapResponse) GetSettings() *api_gateway.Settings
- func (m *BootstrapResponse) GetStoryboards() []*api_gateway.StoryBoard
- func (m *BootstrapResponse) GetTemplatePackages() []*types.Struct
- func (*BootstrapResponse) ProtoMessage()
- func (m *BootstrapResponse) Reset()
- func (m *BootstrapResponse) String() string
- func (this *BootstrapResponse) Validate() error
- func (m *BootstrapResponse) XXX_DiscardUnknown()
- func (m *BootstrapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BootstrapResponse) XXX_Merge(src proto.Message)
- func (m *BootstrapResponse) XXX_Size() int
- func (m *BootstrapResponse) XXX_Unmarshal(b []byte) error
- type BootstrapResponseWrapper
- func (*BootstrapResponseWrapper) Descriptor() ([]byte, []int)
- func (m *BootstrapResponseWrapper) GetCode() int32
- func (m *BootstrapResponseWrapper) GetCodeExplain() string
- func (m *BootstrapResponseWrapper) GetData() *BootstrapResponse
- func (m *BootstrapResponseWrapper) GetError() string
- func (*BootstrapResponseWrapper) ProtoMessage()
- func (m *BootstrapResponseWrapper) Reset()
- func (m *BootstrapResponseWrapper) String() string
- func (this *BootstrapResponseWrapper) Validate() error
- func (m *BootstrapResponseWrapper) XXX_DiscardUnknown()
- func (m *BootstrapResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BootstrapResponseWrapper) XXX_Merge(src proto.Message)
- func (m *BootstrapResponseWrapper) XXX_Size() int
- func (m *BootstrapResponseWrapper) XXX_Unmarshal(b []byte) error
- type Client
- type Service
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 []*api_gateway.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"` // //${BRICK_NEXT}/templates/ * /dist/ 的内容 TemplatePackages []*types.Struct `protobuf:"bytes,4,rep,name=templatePackages,proto3" json:"templatePackages" form:"templatePackages"` // //console特性配置 Settings *api_gateway.Settings `protobuf:"bytes,5,opt,name=settings,proto3" json:"settings" form:"settings"` // //桌面列表 Desktops []*api_gateway.Desktop `protobuf:"bytes,6,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() []*api_gateway.Desktop
func (*BootstrapResponse) GetNavbar ¶
func (m *BootstrapResponse) GetNavbar() *types.Struct
func (*BootstrapResponse) GetSettings ¶
func (m *BootstrapResponse) GetSettings() *api_gateway.Settings
func (*BootstrapResponse) GetStoryboards ¶
func (m *BootstrapResponse) GetStoryboards() []*api_gateway.StoryBoard
func (*BootstrapResponse) GetTemplatePackages ¶
func (m *BootstrapResponse) GetTemplatePackages() []*types.Struct
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 (m *BootstrapResponseWrapper) GetData() *BootstrapResponse
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.
Click to show internal directories.
Click to hide internal directories.