solution

package
Version: 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 Client

type Client interface {
	GetSolution(ctx context.Context, in *GetSolutionRequest) (*GetSolutionResponse, error)
	ListSolutions(ctx context.Context, in *ListSolutionsRequest) (*ListSolutionsResponse, error)
}

Client is the client API for solution 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 GetSolutionRequest

type GetSolutionRequest struct {
	//
	//solution的instanceId
	InstanceId           string   `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

GetSolution请求

func (*GetSolutionRequest) Descriptor

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

func (*GetSolutionRequest) GetInstanceId

func (m *GetSolutionRequest) GetInstanceId() string

func (*GetSolutionRequest) ProtoMessage

func (*GetSolutionRequest) ProtoMessage()

func (*GetSolutionRequest) Reset

func (m *GetSolutionRequest) Reset()

func (*GetSolutionRequest) String

func (m *GetSolutionRequest) String() string

func (*GetSolutionRequest) Validate

func (this *GetSolutionRequest) Validate() error

func (*GetSolutionRequest) XXX_DiscardUnknown

func (m *GetSolutionRequest) XXX_DiscardUnknown()

func (*GetSolutionRequest) XXX_Marshal

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

func (*GetSolutionRequest) XXX_Merge

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

func (*GetSolutionRequest) XXX_Size

func (m *GetSolutionRequest) XXX_Size() int

func (*GetSolutionRequest) XXX_Unmarshal

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

type GetSolutionResponse

type GetSolutionResponse struct {
	//
	//关联的小产品
	MicroApps *app_store.AppStoreMicroApp `protobuf:"bytes,1,opt,name=microApps,proto3" json:"microApps" form:"microApps"`
	//
	//实例id
	InstanceId string `protobuf:"bytes,2,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
	//
	//名称
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name" form:"name"`
	//
	//markdown格式的内容
	Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content" form:"content"`
	//
	//轮播图片
	Thumbnail string `protobuf:"bytes,5,opt,name=thumbnail,proto3" json:"thumbnail" form:"thumbnail"`
	//
	//简介
	Brief string `protobuf:"bytes,6,opt,name=brief,proto3" json:"brief" form:"brief"`
	//
	//图标
	Icon                 *GetSolutionResponse_Icon `protobuf:"bytes,7,opt,name=icon,proto3" json:"icon" form:"icon"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

GetSolution返回

func (*GetSolutionResponse) Descriptor

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

func (*GetSolutionResponse) GetBrief

func (m *GetSolutionResponse) GetBrief() string

func (*GetSolutionResponse) GetContent

func (m *GetSolutionResponse) GetContent() string

func (*GetSolutionResponse) GetIcon

func (*GetSolutionResponse) GetInstanceId

func (m *GetSolutionResponse) GetInstanceId() string

func (*GetSolutionResponse) GetMicroApps

func (m *GetSolutionResponse) GetMicroApps() *app_store.AppStoreMicroApp

func (*GetSolutionResponse) GetName

func (m *GetSolutionResponse) GetName() string

func (*GetSolutionResponse) GetThumbnail

func (m *GetSolutionResponse) GetThumbnail() string

func (*GetSolutionResponse) ProtoMessage

func (*GetSolutionResponse) ProtoMessage()

func (*GetSolutionResponse) Reset

func (m *GetSolutionResponse) Reset()

func (*GetSolutionResponse) String

func (m *GetSolutionResponse) String() string

func (*GetSolutionResponse) Validate

func (this *GetSolutionResponse) Validate() error

func (*GetSolutionResponse) XXX_DiscardUnknown

func (m *GetSolutionResponse) XXX_DiscardUnknown()

func (*GetSolutionResponse) XXX_Marshal

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

func (*GetSolutionResponse) XXX_Merge

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

func (*GetSolutionResponse) XXX_Size

func (m *GetSolutionResponse) XXX_Size() int

func (*GetSolutionResponse) XXX_Unmarshal

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

type GetSolutionResponseWrapper

type GetSolutionResponseWrapper 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                 *GetSolutionResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

GetSolutionApi返回

func (*GetSolutionResponseWrapper) Descriptor

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

func (*GetSolutionResponseWrapper) GetCode

func (m *GetSolutionResponseWrapper) GetCode() int32

func (*GetSolutionResponseWrapper) GetCodeExplain

func (m *GetSolutionResponseWrapper) GetCodeExplain() string

func (*GetSolutionResponseWrapper) GetData

func (*GetSolutionResponseWrapper) GetError

func (m *GetSolutionResponseWrapper) GetError() string

func (*GetSolutionResponseWrapper) ProtoMessage

func (*GetSolutionResponseWrapper) ProtoMessage()

func (*GetSolutionResponseWrapper) Reset

func (m *GetSolutionResponseWrapper) Reset()

func (*GetSolutionResponseWrapper) String

func (m *GetSolutionResponseWrapper) String() string

func (*GetSolutionResponseWrapper) Validate

func (this *GetSolutionResponseWrapper) Validate() error

func (*GetSolutionResponseWrapper) XXX_DiscardUnknown

func (m *GetSolutionResponseWrapper) XXX_DiscardUnknown()

func (*GetSolutionResponseWrapper) XXX_Marshal

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

func (*GetSolutionResponseWrapper) XXX_Merge

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

func (*GetSolutionResponseWrapper) XXX_Size

func (m *GetSolutionResponseWrapper) XXX_Size() int

func (*GetSolutionResponseWrapper) XXX_Unmarshal

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

type GetSolutionResponse_Icon

type GetSolutionResponse_Icon struct {
	//
	//图标库
	Lib string `protobuf:"bytes,1,opt,name=lib,proto3" json:"lib" form:"lib"`
	//
	//图标url
	Icon                 string   `protobuf:"bytes,2,opt,name=icon,proto3" json:"icon" form:"icon"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetSolutionResponse_Icon) Descriptor

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

func (*GetSolutionResponse_Icon) GetIcon

func (m *GetSolutionResponse_Icon) GetIcon() string

func (*GetSolutionResponse_Icon) GetLib

func (m *GetSolutionResponse_Icon) GetLib() string

func (*GetSolutionResponse_Icon) ProtoMessage

func (*GetSolutionResponse_Icon) ProtoMessage()

func (*GetSolutionResponse_Icon) Reset

func (m *GetSolutionResponse_Icon) Reset()

func (*GetSolutionResponse_Icon) String

func (m *GetSolutionResponse_Icon) String() string

func (*GetSolutionResponse_Icon) Validate

func (this *GetSolutionResponse_Icon) Validate() error

func (*GetSolutionResponse_Icon) XXX_DiscardUnknown

func (m *GetSolutionResponse_Icon) XXX_DiscardUnknown()

func (*GetSolutionResponse_Icon) XXX_Marshal

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

func (*GetSolutionResponse_Icon) XXX_Merge

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

func (*GetSolutionResponse_Icon) XXX_Size

func (m *GetSolutionResponse_Icon) XXX_Size() int

func (*GetSolutionResponse_Icon) XXX_Unmarshal

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

type ListSolutionsRequest

type ListSolutionsRequest struct {
	//
	//页码
	Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page" form:"page"`
	//
	//每页大小
	PageSize             int32    `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size" form:"page_size"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ListSolutions请求

func (*ListSolutionsRequest) Descriptor

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

func (*ListSolutionsRequest) GetPage

func (m *ListSolutionsRequest) GetPage() int32

func (*ListSolutionsRequest) GetPageSize

func (m *ListSolutionsRequest) GetPageSize() int32

func (*ListSolutionsRequest) ProtoMessage

func (*ListSolutionsRequest) ProtoMessage()

func (*ListSolutionsRequest) Reset

func (m *ListSolutionsRequest) Reset()

func (*ListSolutionsRequest) String

func (m *ListSolutionsRequest) String() string

func (*ListSolutionsRequest) Validate

func (this *ListSolutionsRequest) Validate() error

func (*ListSolutionsRequest) XXX_DiscardUnknown

func (m *ListSolutionsRequest) XXX_DiscardUnknown()

func (*ListSolutionsRequest) XXX_Marshal

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

func (*ListSolutionsRequest) XXX_Merge

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

func (*ListSolutionsRequest) XXX_Size

func (m *ListSolutionsRequest) XXX_Size() int

func (*ListSolutionsRequest) XXX_Unmarshal

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

type ListSolutionsResponse

type ListSolutionsResponse struct {
	//
	//返回总数
	Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total" form:"total"`
	//
	//页数
	Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page" form:"page"`
	//
	//该页大小
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size" form:"page_size"`
	//
	//数据列表
	List                 []*ListSolutionsResponse_List `protobuf:"bytes,4,rep,name=list,proto3" json:"list" form:"list"`
	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
	XXX_unrecognized     []byte                        `json:"-"`
	XXX_sizecache        int32                         `json:"-"`
}

ListSolutions返回

func (*ListSolutionsResponse) Descriptor

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

func (*ListSolutionsResponse) GetList

func (*ListSolutionsResponse) GetPage

func (m *ListSolutionsResponse) GetPage() int32

func (*ListSolutionsResponse) GetPageSize

func (m *ListSolutionsResponse) GetPageSize() int32

func (*ListSolutionsResponse) GetTotal

func (m *ListSolutionsResponse) GetTotal() int32

func (*ListSolutionsResponse) ProtoMessage

func (*ListSolutionsResponse) ProtoMessage()

func (*ListSolutionsResponse) Reset

func (m *ListSolutionsResponse) Reset()

func (*ListSolutionsResponse) String

func (m *ListSolutionsResponse) String() string

func (*ListSolutionsResponse) Validate

func (this *ListSolutionsResponse) Validate() error

func (*ListSolutionsResponse) XXX_DiscardUnknown

func (m *ListSolutionsResponse) XXX_DiscardUnknown()

func (*ListSolutionsResponse) XXX_Marshal

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

func (*ListSolutionsResponse) XXX_Merge

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

func (*ListSolutionsResponse) XXX_Size

func (m *ListSolutionsResponse) XXX_Size() int

func (*ListSolutionsResponse) XXX_Unmarshal

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

type ListSolutionsResponseWrapper

type ListSolutionsResponseWrapper 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                 *ListSolutionsResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

ListSolutionsApi返回

func (*ListSolutionsResponseWrapper) Descriptor

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

func (*ListSolutionsResponseWrapper) GetCode

func (m *ListSolutionsResponseWrapper) GetCode() int32

func (*ListSolutionsResponseWrapper) GetCodeExplain

func (m *ListSolutionsResponseWrapper) GetCodeExplain() string

func (*ListSolutionsResponseWrapper) GetData

func (*ListSolutionsResponseWrapper) GetError

func (m *ListSolutionsResponseWrapper) GetError() string

func (*ListSolutionsResponseWrapper) ProtoMessage

func (*ListSolutionsResponseWrapper) ProtoMessage()

func (*ListSolutionsResponseWrapper) Reset

func (m *ListSolutionsResponseWrapper) Reset()

func (*ListSolutionsResponseWrapper) String

func (*ListSolutionsResponseWrapper) Validate

func (this *ListSolutionsResponseWrapper) Validate() error

func (*ListSolutionsResponseWrapper) XXX_DiscardUnknown

func (m *ListSolutionsResponseWrapper) XXX_DiscardUnknown()

func (*ListSolutionsResponseWrapper) XXX_Marshal

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

func (*ListSolutionsResponseWrapper) XXX_Merge

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

func (*ListSolutionsResponseWrapper) XXX_Size

func (m *ListSolutionsResponseWrapper) XXX_Size() int

func (*ListSolutionsResponseWrapper) XXX_Unmarshal

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

type ListSolutionsResponse_List

type ListSolutionsResponse_List struct {
	//
	//关联的小产品
	MicroApps []*app_store.AppStoreMicroApp `protobuf:"bytes,1,rep,name=microApps,proto3" json:"microApps" form:"microApps"`
	//
	//实例id
	InstanceId string `protobuf:"bytes,2,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
	//
	//名称
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name" form:"name"`
	//
	//markdown格式的内容
	Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content" form:"content"`
	//
	//轮播图片
	Thumbnail string `protobuf:"bytes,5,opt,name=thumbnail,proto3" json:"thumbnail" form:"thumbnail"`
	//
	//简介
	Brief string `protobuf:"bytes,6,opt,name=brief,proto3" json:"brief" form:"brief"`
	//
	//图标
	Icon                 *ListSolutionsResponse_List_Icon `protobuf:"bytes,7,opt,name=icon,proto3" json:"icon" form:"icon"`
	XXX_NoUnkeyedLiteral struct{}                         `json:"-"`
	XXX_unrecognized     []byte                           `json:"-"`
	XXX_sizecache        int32                            `json:"-"`
}

func (*ListSolutionsResponse_List) Descriptor

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

func (*ListSolutionsResponse_List) GetBrief

func (m *ListSolutionsResponse_List) GetBrief() string

func (*ListSolutionsResponse_List) GetContent

func (m *ListSolutionsResponse_List) GetContent() string

func (*ListSolutionsResponse_List) GetIcon

func (*ListSolutionsResponse_List) GetInstanceId

func (m *ListSolutionsResponse_List) GetInstanceId() string

func (*ListSolutionsResponse_List) GetMicroApps

func (*ListSolutionsResponse_List) GetName

func (m *ListSolutionsResponse_List) GetName() string

func (*ListSolutionsResponse_List) GetThumbnail

func (m *ListSolutionsResponse_List) GetThumbnail() string

func (*ListSolutionsResponse_List) ProtoMessage

func (*ListSolutionsResponse_List) ProtoMessage()

func (*ListSolutionsResponse_List) Reset

func (m *ListSolutionsResponse_List) Reset()

func (*ListSolutionsResponse_List) String

func (m *ListSolutionsResponse_List) String() string

func (*ListSolutionsResponse_List) Validate

func (this *ListSolutionsResponse_List) Validate() error

func (*ListSolutionsResponse_List) XXX_DiscardUnknown

func (m *ListSolutionsResponse_List) XXX_DiscardUnknown()

func (*ListSolutionsResponse_List) XXX_Marshal

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

func (*ListSolutionsResponse_List) XXX_Merge

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

func (*ListSolutionsResponse_List) XXX_Size

func (m *ListSolutionsResponse_List) XXX_Size() int

func (*ListSolutionsResponse_List) XXX_Unmarshal

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

type ListSolutionsResponse_List_Icon

type ListSolutionsResponse_List_Icon struct {
	//
	//图标库
	Lib string `protobuf:"bytes,1,opt,name=lib,proto3" json:"lib" form:"lib"`
	//
	//图标url
	Icon                 string   `protobuf:"bytes,2,opt,name=icon,proto3" json:"icon" form:"icon"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListSolutionsResponse_List_Icon) Descriptor

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

func (*ListSolutionsResponse_List_Icon) GetIcon

func (*ListSolutionsResponse_List_Icon) GetLib

func (*ListSolutionsResponse_List_Icon) ProtoMessage

func (*ListSolutionsResponse_List_Icon) ProtoMessage()

func (*ListSolutionsResponse_List_Icon) Reset

func (*ListSolutionsResponse_List_Icon) String

func (*ListSolutionsResponse_List_Icon) Validate

func (this *ListSolutionsResponse_List_Icon) Validate() error

func (*ListSolutionsResponse_List_Icon) XXX_DiscardUnknown

func (m *ListSolutionsResponse_List_Icon) XXX_DiscardUnknown()

func (*ListSolutionsResponse_List_Icon) XXX_Marshal

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

func (*ListSolutionsResponse_List_Icon) XXX_Merge

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

func (*ListSolutionsResponse_List_Icon) XXX_Size

func (m *ListSolutionsResponse_List_Icon) XXX_Size() int

func (*ListSolutionsResponse_List_Icon) XXX_Unmarshal

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

type Service

type Service interface {
	GetSolution(context.Context, *GetSolutionRequest) (*GetSolutionResponse, error)
	ListSolutions(context.Context, *ListSolutionsRequest) (*ListSolutionsResponse, error)
}

Service is the server API for solution service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL