Documentation
¶
Index ¶
- func RegisterService(s giraffe_micro.Server, srv Service)
- type Client
- type CreateResponseWrapper
- func (*CreateResponseWrapper) Descriptor() ([]byte, []int)
- func (m *CreateResponseWrapper) GetCode() int32
- func (m *CreateResponseWrapper) GetCodeExplain() string
- func (m *CreateResponseWrapper) GetData() *pipeline.Template
- func (m *CreateResponseWrapper) GetError() string
- func (*CreateResponseWrapper) ProtoMessage()
- func (m *CreateResponseWrapper) Reset()
- func (m *CreateResponseWrapper) String() string
- func (this *CreateResponseWrapper) Validate() error
- func (m *CreateResponseWrapper) XXX_DiscardUnknown()
- func (m *CreateResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateResponseWrapper) XXX_Merge(src proto.Message)
- func (m *CreateResponseWrapper) XXX_Size() int
- func (m *CreateResponseWrapper) XXX_Unmarshal(b []byte) error
- type DeleteTemplateRequest
- func (*DeleteTemplateRequest) Descriptor() ([]byte, []int)
- func (m *DeleteTemplateRequest) GetId() string
- func (*DeleteTemplateRequest) ProtoMessage()
- func (m *DeleteTemplateRequest) Reset()
- func (m *DeleteTemplateRequest) String() string
- func (this *DeleteTemplateRequest) Validate() error
- func (m *DeleteTemplateRequest) XXX_DiscardUnknown()
- func (m *DeleteTemplateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteTemplateRequest) XXX_Merge(src proto.Message)
- func (m *DeleteTemplateRequest) XXX_Size() int
- func (m *DeleteTemplateRequest) XXX_Unmarshal(b []byte) error
- type DeleteTemplateResponseWrapper
- func (*DeleteTemplateResponseWrapper) Descriptor() ([]byte, []int)
- func (m *DeleteTemplateResponseWrapper) GetCode() int32
- func (m *DeleteTemplateResponseWrapper) GetCodeExplain() string
- func (m *DeleteTemplateResponseWrapper) GetData() *types.Empty
- func (m *DeleteTemplateResponseWrapper) GetError() string
- func (*DeleteTemplateResponseWrapper) ProtoMessage()
- func (m *DeleteTemplateResponseWrapper) Reset()
- func (m *DeleteTemplateResponseWrapper) String() string
- func (this *DeleteTemplateResponseWrapper) Validate() error
- func (m *DeleteTemplateResponseWrapper) XXX_DiscardUnknown()
- func (m *DeleteTemplateResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteTemplateResponseWrapper) XXX_Merge(src proto.Message)
- func (m *DeleteTemplateResponseWrapper) XXX_Size() int
- func (m *DeleteTemplateResponseWrapper) XXX_Unmarshal(b []byte) error
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)
- func (m *GetRequest) GetId() string
- func (*GetRequest) ProtoMessage()
- func (m *GetRequest) Reset()
- func (m *GetRequest) String() string
- func (this *GetRequest) Validate() error
- func (m *GetRequest) XXX_DiscardUnknown()
- func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRequest) XXX_Merge(src proto.Message)
- func (m *GetRequest) XXX_Size() int
- func (m *GetRequest) XXX_Unmarshal(b []byte) error
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)
- func (m *GetResponse) GetPipeline() []*pipeline.Pipeline
- func (m *GetResponse) GetTemplate() *pipeline.Template
- func (*GetResponse) ProtoMessage()
- func (m *GetResponse) Reset()
- func (m *GetResponse) String() string
- func (this *GetResponse) Validate() error
- func (m *GetResponse) XXX_DiscardUnknown()
- func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetResponse) XXX_Merge(src proto.Message)
- func (m *GetResponse) XXX_Size() int
- func (m *GetResponse) XXX_Unmarshal(b []byte) error
- type GetResponseWrapper
- func (*GetResponseWrapper) Descriptor() ([]byte, []int)
- func (m *GetResponseWrapper) GetCode() int32
- func (m *GetResponseWrapper) GetCodeExplain() string
- func (m *GetResponseWrapper) GetData() *GetResponse
- func (m *GetResponseWrapper) GetError() string
- func (*GetResponseWrapper) ProtoMessage()
- func (m *GetResponseWrapper) Reset()
- func (m *GetResponseWrapper) String() string
- func (this *GetResponseWrapper) Validate() error
- func (m *GetResponseWrapper) XXX_DiscardUnknown()
- func (m *GetResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetResponseWrapper) XXX_Merge(src proto.Message)
- func (m *GetResponseWrapper) XXX_Size() int
- func (m *GetResponseWrapper) XXX_Unmarshal(b []byte) error
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)
- func (m *ListRequest) GetName() string
- func (*ListRequest) ProtoMessage()
- func (m *ListRequest) Reset()
- func (m *ListRequest) String() string
- func (this *ListRequest) Validate() error
- func (m *ListRequest) XXX_DiscardUnknown()
- func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListRequest) XXX_Merge(src proto.Message)
- func (m *ListRequest) XXX_Size() int
- func (m *ListRequest) XXX_Unmarshal(b []byte) error
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)
- func (m *ListResponse) GetList() []*ListResponse_List
- func (m *ListResponse) GetPage() int32
- func (m *ListResponse) GetPageSize() int32
- func (m *ListResponse) GetTotal() int32
- func (*ListResponse) ProtoMessage()
- func (m *ListResponse) Reset()
- func (m *ListResponse) String() string
- func (this *ListResponse) Validate() error
- func (m *ListResponse) XXX_DiscardUnknown()
- func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListResponse) XXX_Merge(src proto.Message)
- func (m *ListResponse) XXX_Size() int
- func (m *ListResponse) XXX_Unmarshal(b []byte) error
- type ListResponseWrapper
- func (*ListResponseWrapper) Descriptor() ([]byte, []int)
- func (m *ListResponseWrapper) GetCode() int32
- func (m *ListResponseWrapper) GetCodeExplain() string
- func (m *ListResponseWrapper) GetData() *ListResponse
- func (m *ListResponseWrapper) GetError() string
- func (*ListResponseWrapper) ProtoMessage()
- func (m *ListResponseWrapper) Reset()
- func (m *ListResponseWrapper) String() string
- func (this *ListResponseWrapper) Validate() error
- func (m *ListResponseWrapper) XXX_DiscardUnknown()
- func (m *ListResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListResponseWrapper) XXX_Merge(src proto.Message)
- func (m *ListResponseWrapper) XXX_Size() int
- func (m *ListResponseWrapper) XXX_Unmarshal(b []byte) error
- type ListResponse_List
- func (*ListResponse_List) Descriptor() ([]byte, []int)
- func (m *ListResponse_List) GetCreator() string
- func (m *ListResponse_List) GetCtime() string
- func (m *ListResponse_List) GetDescription() string
- func (m *ListResponse_List) GetId() string
- func (m *ListResponse_List) GetMtime() string
- func (m *ListResponse_List) GetName() string
- func (m *ListResponse_List) GetVariables() []*ListResponse_List_Variables
- func (m *ListResponse_List) GetYamlString() string
- func (*ListResponse_List) ProtoMessage()
- func (m *ListResponse_List) Reset()
- func (m *ListResponse_List) String() string
- func (this *ListResponse_List) Validate() error
- func (m *ListResponse_List) XXX_DiscardUnknown()
- func (m *ListResponse_List) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListResponse_List) XXX_Merge(src proto.Message)
- func (m *ListResponse_List) XXX_Size() int
- func (m *ListResponse_List) XXX_Unmarshal(b []byte) error
- type ListResponse_List_Variables
- func (*ListResponse_List_Variables) Descriptor() ([]byte, []int)
- func (m *ListResponse_List_Variables) GetName() string
- func (m *ListResponse_List_Variables) GetValue() string
- func (*ListResponse_List_Variables) ProtoMessage()
- func (m *ListResponse_List_Variables) Reset()
- func (m *ListResponse_List_Variables) String() string
- func (this *ListResponse_List_Variables) Validate() error
- func (m *ListResponse_List_Variables) XXX_DiscardUnknown()
- func (m *ListResponse_List_Variables) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListResponse_List_Variables) XXX_Merge(src proto.Message)
- func (m *ListResponse_List_Variables) XXX_Size() int
- func (m *ListResponse_List_Variables) XXX_Unmarshal(b []byte) error
- type Service
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)
- func (m *UpdateRequest) GetId() string
- func (m *UpdateRequest) GetTemplate() *pipeline.Template
- func (*UpdateRequest) ProtoMessage()
- func (m *UpdateRequest) Reset()
- func (m *UpdateRequest) String() string
- func (this *UpdateRequest) Validate() error
- func (m *UpdateRequest) XXX_DiscardUnknown()
- func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateRequest) XXX_Merge(src proto.Message)
- func (m *UpdateRequest) XXX_Size() int
- func (m *UpdateRequest) XXX_Unmarshal(b []byte) error
- type UpdateResponseWrapper
- func (*UpdateResponseWrapper) Descriptor() ([]byte, []int)
- func (m *UpdateResponseWrapper) GetCode() int32
- func (m *UpdateResponseWrapper) GetCodeExplain() string
- func (m *UpdateResponseWrapper) GetData() *pipeline.Template
- func (m *UpdateResponseWrapper) GetError() string
- func (*UpdateResponseWrapper) ProtoMessage()
- func (m *UpdateResponseWrapper) Reset()
- func (m *UpdateResponseWrapper) String() string
- func (this *UpdateResponseWrapper) Validate() error
- func (m *UpdateResponseWrapper) XXX_DiscardUnknown()
- func (m *UpdateResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateResponseWrapper) XXX_Merge(src proto.Message)
- func (m *UpdateResponseWrapper) XXX_Size() int
- func (m *UpdateResponseWrapper) XXX_Unmarshal(b []byte) error
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 { Create(ctx context.Context, in *pipeline.Template) (*pipeline.Template, error) DeleteTemplate(ctx context.Context, in *DeleteTemplateRequest) (*types.Empty, error) Get(ctx context.Context, in *GetRequest) (*GetResponse, error) List(ctx context.Context, in *ListRequest) (*ListResponse, error) Update(ctx context.Context, in *UpdateRequest) (*pipeline.Template, error) }
Client is the client API for template 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 CreateResponseWrapper ¶
type CreateResponseWrapper 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 *pipeline.Template `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CreateApi返回
func (*CreateResponseWrapper) Descriptor ¶
func (*CreateResponseWrapper) Descriptor() ([]byte, []int)
func (*CreateResponseWrapper) GetCode ¶
func (m *CreateResponseWrapper) GetCode() int32
func (*CreateResponseWrapper) GetCodeExplain ¶
func (m *CreateResponseWrapper) GetCodeExplain() string
func (*CreateResponseWrapper) GetData ¶
func (m *CreateResponseWrapper) GetData() *pipeline.Template
func (*CreateResponseWrapper) GetError ¶
func (m *CreateResponseWrapper) GetError() string
func (*CreateResponseWrapper) ProtoMessage ¶
func (*CreateResponseWrapper) ProtoMessage()
func (*CreateResponseWrapper) Reset ¶
func (m *CreateResponseWrapper) Reset()
func (*CreateResponseWrapper) String ¶
func (m *CreateResponseWrapper) String() string
func (*CreateResponseWrapper) Validate ¶
func (this *CreateResponseWrapper) Validate() error
func (*CreateResponseWrapper) XXX_DiscardUnknown ¶
func (m *CreateResponseWrapper) XXX_DiscardUnknown()
func (*CreateResponseWrapper) XXX_Marshal ¶
func (m *CreateResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateResponseWrapper) XXX_Merge ¶
func (m *CreateResponseWrapper) XXX_Merge(src proto.Message)
func (*CreateResponseWrapper) XXX_Size ¶
func (m *CreateResponseWrapper) XXX_Size() int
func (*CreateResponseWrapper) XXX_Unmarshal ¶
func (m *CreateResponseWrapper) XXX_Unmarshal(b []byte) error
type DeleteTemplateRequest ¶
type DeleteTemplateRequest struct { // //要删除的模版id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
DeleteTemplate请求
func (*DeleteTemplateRequest) Descriptor ¶
func (*DeleteTemplateRequest) Descriptor() ([]byte, []int)
func (*DeleteTemplateRequest) GetId ¶
func (m *DeleteTemplateRequest) GetId() string
func (*DeleteTemplateRequest) ProtoMessage ¶
func (*DeleteTemplateRequest) ProtoMessage()
func (*DeleteTemplateRequest) Reset ¶
func (m *DeleteTemplateRequest) Reset()
func (*DeleteTemplateRequest) String ¶
func (m *DeleteTemplateRequest) String() string
func (*DeleteTemplateRequest) Validate ¶
func (this *DeleteTemplateRequest) Validate() error
func (*DeleteTemplateRequest) XXX_DiscardUnknown ¶
func (m *DeleteTemplateRequest) XXX_DiscardUnknown()
func (*DeleteTemplateRequest) XXX_Marshal ¶
func (m *DeleteTemplateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteTemplateRequest) XXX_Merge ¶
func (m *DeleteTemplateRequest) XXX_Merge(src proto.Message)
func (*DeleteTemplateRequest) XXX_Size ¶
func (m *DeleteTemplateRequest) XXX_Size() int
func (*DeleteTemplateRequest) XXX_Unmarshal ¶
func (m *DeleteTemplateRequest) XXX_Unmarshal(b []byte) error
type DeleteTemplateResponseWrapper ¶
type DeleteTemplateResponseWrapper 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 *types.Empty `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
DeleteTemplateApi返回
func (*DeleteTemplateResponseWrapper) Descriptor ¶
func (*DeleteTemplateResponseWrapper) Descriptor() ([]byte, []int)
func (*DeleteTemplateResponseWrapper) GetCode ¶
func (m *DeleteTemplateResponseWrapper) GetCode() int32
func (*DeleteTemplateResponseWrapper) GetCodeExplain ¶
func (m *DeleteTemplateResponseWrapper) GetCodeExplain() string
func (*DeleteTemplateResponseWrapper) GetData ¶
func (m *DeleteTemplateResponseWrapper) GetData() *types.Empty
func (*DeleteTemplateResponseWrapper) GetError ¶
func (m *DeleteTemplateResponseWrapper) GetError() string
func (*DeleteTemplateResponseWrapper) ProtoMessage ¶
func (*DeleteTemplateResponseWrapper) ProtoMessage()
func (*DeleteTemplateResponseWrapper) Reset ¶
func (m *DeleteTemplateResponseWrapper) Reset()
func (*DeleteTemplateResponseWrapper) String ¶
func (m *DeleteTemplateResponseWrapper) String() string
func (*DeleteTemplateResponseWrapper) Validate ¶
func (this *DeleteTemplateResponseWrapper) Validate() error
func (*DeleteTemplateResponseWrapper) XXX_DiscardUnknown ¶
func (m *DeleteTemplateResponseWrapper) XXX_DiscardUnknown()
func (*DeleteTemplateResponseWrapper) XXX_Marshal ¶
func (m *DeleteTemplateResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteTemplateResponseWrapper) XXX_Merge ¶
func (m *DeleteTemplateResponseWrapper) XXX_Merge(src proto.Message)
func (*DeleteTemplateResponseWrapper) XXX_Size ¶
func (m *DeleteTemplateResponseWrapper) XXX_Size() int
func (*DeleteTemplateResponseWrapper) XXX_Unmarshal ¶
func (m *DeleteTemplateResponseWrapper) XXX_Unmarshal(b []byte) error
type GetRequest ¶
type GetRequest struct { // //模板id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Get请求
func (*GetRequest) Descriptor ¶
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) GetId ¶
func (m *GetRequest) GetId() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶
func (m *GetRequest) Reset()
func (*GetRequest) String ¶
func (m *GetRequest) String() string
func (*GetRequest) Validate ¶
func (this *GetRequest) Validate() error
func (*GetRequest) XXX_DiscardUnknown ¶
func (m *GetRequest) XXX_DiscardUnknown()
func (*GetRequest) XXX_Marshal ¶
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRequest) XXX_Merge ¶
func (m *GetRequest) XXX_Merge(src proto.Message)
func (*GetRequest) XXX_Size ¶
func (m *GetRequest) XXX_Size() int
func (*GetRequest) XXX_Unmarshal ¶
func (m *GetRequest) XXX_Unmarshal(b []byte) error
type GetResponse ¶
type GetResponse struct { // //模板 Template *pipeline.Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template" form:"template"` // //template关联的pipeline信息 Pipeline []*pipeline.Pipeline `protobuf:"bytes,2,rep,name=pipeline,proto3" json:"pipeline" form:"pipeline"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Get返回
func (*GetResponse) Descriptor ¶
func (*GetResponse) Descriptor() ([]byte, []int)
func (*GetResponse) GetPipeline ¶
func (m *GetResponse) GetPipeline() []*pipeline.Pipeline
func (*GetResponse) GetTemplate ¶
func (m *GetResponse) GetTemplate() *pipeline.Template
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) Reset ¶
func (m *GetResponse) Reset()
func (*GetResponse) String ¶
func (m *GetResponse) String() string
func (*GetResponse) Validate ¶
func (this *GetResponse) Validate() error
func (*GetResponse) XXX_DiscardUnknown ¶
func (m *GetResponse) XXX_DiscardUnknown()
func (*GetResponse) XXX_Marshal ¶
func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetResponse) XXX_Merge ¶
func (m *GetResponse) XXX_Merge(src proto.Message)
func (*GetResponse) XXX_Size ¶
func (m *GetResponse) XXX_Size() int
func (*GetResponse) XXX_Unmarshal ¶
func (m *GetResponse) XXX_Unmarshal(b []byte) error
type GetResponseWrapper ¶
type GetResponseWrapper 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 *GetResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetApi返回
func (*GetResponseWrapper) Descriptor ¶
func (*GetResponseWrapper) Descriptor() ([]byte, []int)
func (*GetResponseWrapper) GetCode ¶
func (m *GetResponseWrapper) GetCode() int32
func (*GetResponseWrapper) GetCodeExplain ¶
func (m *GetResponseWrapper) GetCodeExplain() string
func (*GetResponseWrapper) GetData ¶
func (m *GetResponseWrapper) GetData() *GetResponse
func (*GetResponseWrapper) GetError ¶
func (m *GetResponseWrapper) GetError() string
func (*GetResponseWrapper) ProtoMessage ¶
func (*GetResponseWrapper) ProtoMessage()
func (*GetResponseWrapper) Reset ¶
func (m *GetResponseWrapper) Reset()
func (*GetResponseWrapper) String ¶
func (m *GetResponseWrapper) String() string
func (*GetResponseWrapper) Validate ¶
func (this *GetResponseWrapper) Validate() error
func (*GetResponseWrapper) XXX_DiscardUnknown ¶
func (m *GetResponseWrapper) XXX_DiscardUnknown()
func (*GetResponseWrapper) XXX_Marshal ¶
func (m *GetResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetResponseWrapper) XXX_Merge ¶
func (m *GetResponseWrapper) XXX_Merge(src proto.Message)
func (*GetResponseWrapper) XXX_Size ¶
func (m *GetResponseWrapper) XXX_Size() int
func (*GetResponseWrapper) XXX_Unmarshal ¶
func (m *GetResponseWrapper) XXX_Unmarshal(b []byte) error
type ListRequest ¶
type ListRequest struct { // //按名称搜索 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
List请求
func (*ListRequest) Descriptor ¶
func (*ListRequest) Descriptor() ([]byte, []int)
func (*ListRequest) GetName ¶
func (m *ListRequest) GetName() string
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) Reset ¶
func (m *ListRequest) Reset()
func (*ListRequest) String ¶
func (m *ListRequest) String() string
func (*ListRequest) Validate ¶
func (this *ListRequest) Validate() error
func (*ListRequest) XXX_DiscardUnknown ¶
func (m *ListRequest) XXX_DiscardUnknown()
func (*ListRequest) XXX_Marshal ¶
func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListRequest) XXX_Merge ¶
func (m *ListRequest) XXX_Merge(src proto.Message)
func (*ListRequest) XXX_Size ¶
func (m *ListRequest) XXX_Size() int
func (*ListRequest) XXX_Unmarshal ¶
func (m *ListRequest) XXX_Unmarshal(b []byte) error
type ListResponse ¶
type ListResponse 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 []*ListResponse_List `protobuf:"bytes,4,rep,name=list,proto3" json:"list" form:"list"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
List返回
func (*ListResponse) Descriptor ¶
func (*ListResponse) Descriptor() ([]byte, []int)
func (*ListResponse) GetList ¶
func (m *ListResponse) GetList() []*ListResponse_List
func (*ListResponse) GetPage ¶
func (m *ListResponse) GetPage() int32
func (*ListResponse) GetPageSize ¶
func (m *ListResponse) GetPageSize() int32
func (*ListResponse) GetTotal ¶
func (m *ListResponse) GetTotal() int32
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) Reset ¶
func (m *ListResponse) Reset()
func (*ListResponse) String ¶
func (m *ListResponse) String() string
func (*ListResponse) Validate ¶
func (this *ListResponse) Validate() error
func (*ListResponse) XXX_DiscardUnknown ¶
func (m *ListResponse) XXX_DiscardUnknown()
func (*ListResponse) XXX_Marshal ¶
func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListResponse) XXX_Merge ¶
func (m *ListResponse) XXX_Merge(src proto.Message)
func (*ListResponse) XXX_Size ¶
func (m *ListResponse) XXX_Size() int
func (*ListResponse) XXX_Unmarshal ¶
func (m *ListResponse) XXX_Unmarshal(b []byte) error
type ListResponseWrapper ¶
type ListResponseWrapper 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 *ListResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ListApi返回
func (*ListResponseWrapper) Descriptor ¶
func (*ListResponseWrapper) Descriptor() ([]byte, []int)
func (*ListResponseWrapper) GetCode ¶
func (m *ListResponseWrapper) GetCode() int32
func (*ListResponseWrapper) GetCodeExplain ¶
func (m *ListResponseWrapper) GetCodeExplain() string
func (*ListResponseWrapper) GetData ¶
func (m *ListResponseWrapper) GetData() *ListResponse
func (*ListResponseWrapper) GetError ¶
func (m *ListResponseWrapper) GetError() string
func (*ListResponseWrapper) ProtoMessage ¶
func (*ListResponseWrapper) ProtoMessage()
func (*ListResponseWrapper) Reset ¶
func (m *ListResponseWrapper) Reset()
func (*ListResponseWrapper) String ¶
func (m *ListResponseWrapper) String() string
func (*ListResponseWrapper) Validate ¶
func (this *ListResponseWrapper) Validate() error
func (*ListResponseWrapper) XXX_DiscardUnknown ¶
func (m *ListResponseWrapper) XXX_DiscardUnknown()
func (*ListResponseWrapper) XXX_Marshal ¶
func (m *ListResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListResponseWrapper) XXX_Merge ¶
func (m *ListResponseWrapper) XXX_Merge(src proto.Message)
func (*ListResponseWrapper) XXX_Size ¶
func (m *ListResponseWrapper) XXX_Size() int
func (*ListResponseWrapper) XXX_Unmarshal ¶
func (m *ListResponseWrapper) XXX_Unmarshal(b []byte) error
type ListResponse_List ¶
type ListResponse_List struct { // //模板id,服务端自动生成 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"` // //模板名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" form:"name"` // //简介 Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description" form:"description"` // //yaml定义 YamlString string `protobuf:"bytes,4,opt,name=yaml_string,json=yamlString,proto3" json:"yaml_string" form:"yaml_string"` // //模板变量列表 Variables []*ListResponse_List_Variables `protobuf:"bytes,5,rep,name=variables,proto3" json:"variables" form:"variables"` // //创建者,服务端自动生成 Creator string `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator" form:"creator"` // //创建时间, 服务端自动生成 Ctime string `protobuf:"bytes,7,opt,name=ctime,proto3" json:"ctime" form:"ctime"` // //修改时间, 服务端自动生成 Mtime string `protobuf:"bytes,8,opt,name=mtime,proto3" json:"mtime" form:"mtime"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListResponse_List) Descriptor ¶
func (*ListResponse_List) Descriptor() ([]byte, []int)
func (*ListResponse_List) GetCreator ¶
func (m *ListResponse_List) GetCreator() string
func (*ListResponse_List) GetCtime ¶
func (m *ListResponse_List) GetCtime() string
func (*ListResponse_List) GetDescription ¶
func (m *ListResponse_List) GetDescription() string
func (*ListResponse_List) GetId ¶
func (m *ListResponse_List) GetId() string
func (*ListResponse_List) GetMtime ¶
func (m *ListResponse_List) GetMtime() string
func (*ListResponse_List) GetName ¶
func (m *ListResponse_List) GetName() string
func (*ListResponse_List) GetVariables ¶
func (m *ListResponse_List) GetVariables() []*ListResponse_List_Variables
func (*ListResponse_List) GetYamlString ¶
func (m *ListResponse_List) GetYamlString() string
func (*ListResponse_List) ProtoMessage ¶
func (*ListResponse_List) ProtoMessage()
func (*ListResponse_List) Reset ¶
func (m *ListResponse_List) Reset()
func (*ListResponse_List) String ¶
func (m *ListResponse_List) String() string
func (*ListResponse_List) Validate ¶
func (this *ListResponse_List) Validate() error
func (*ListResponse_List) XXX_DiscardUnknown ¶
func (m *ListResponse_List) XXX_DiscardUnknown()
func (*ListResponse_List) XXX_Marshal ¶
func (m *ListResponse_List) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListResponse_List) XXX_Merge ¶
func (m *ListResponse_List) XXX_Merge(src proto.Message)
func (*ListResponse_List) XXX_Size ¶
func (m *ListResponse_List) XXX_Size() int
func (*ListResponse_List) XXX_Unmarshal ¶
func (m *ListResponse_List) XXX_Unmarshal(b []byte) error
type ListResponse_List_Variables ¶
type ListResponse_List_Variables struct { // //name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"` // //value Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value" form:"value"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListResponse_List_Variables) Descriptor ¶
func (*ListResponse_List_Variables) Descriptor() ([]byte, []int)
func (*ListResponse_List_Variables) GetName ¶
func (m *ListResponse_List_Variables) GetName() string
func (*ListResponse_List_Variables) GetValue ¶
func (m *ListResponse_List_Variables) GetValue() string
func (*ListResponse_List_Variables) ProtoMessage ¶
func (*ListResponse_List_Variables) ProtoMessage()
func (*ListResponse_List_Variables) Reset ¶
func (m *ListResponse_List_Variables) Reset()
func (*ListResponse_List_Variables) String ¶
func (m *ListResponse_List_Variables) String() string
func (*ListResponse_List_Variables) Validate ¶
func (this *ListResponse_List_Variables) Validate() error
func (*ListResponse_List_Variables) XXX_DiscardUnknown ¶
func (m *ListResponse_List_Variables) XXX_DiscardUnknown()
func (*ListResponse_List_Variables) XXX_Marshal ¶
func (m *ListResponse_List_Variables) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListResponse_List_Variables) XXX_Merge ¶
func (m *ListResponse_List_Variables) XXX_Merge(src proto.Message)
func (*ListResponse_List_Variables) XXX_Size ¶
func (m *ListResponse_List_Variables) XXX_Size() int
func (*ListResponse_List_Variables) XXX_Unmarshal ¶
func (m *ListResponse_List_Variables) XXX_Unmarshal(b []byte) error
type Service ¶
type Service interface { Create(context.Context, *pipeline.Template) (*pipeline.Template, error) DeleteTemplate(context.Context, *DeleteTemplateRequest) (*types.Empty, error) Get(context.Context, *GetRequest) (*GetResponse, error) List(context.Context, *ListRequest) (*ListResponse, error) Update(context.Context, *UpdateRequest) (*pipeline.Template, error) }
Service is the server API for template service.
type UpdateRequest ¶
type UpdateRequest struct { // //模板id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"` // //模板 Template *pipeline.Template `protobuf:"bytes,2,opt,name=template,proto3" json:"template" form:"template"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Update请求
func (*UpdateRequest) Descriptor ¶
func (*UpdateRequest) Descriptor() ([]byte, []int)
func (*UpdateRequest) GetId ¶
func (m *UpdateRequest) GetId() string
func (*UpdateRequest) GetTemplate ¶
func (m *UpdateRequest) GetTemplate() *pipeline.Template
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) Reset ¶
func (m *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (m *UpdateRequest) String() string
func (*UpdateRequest) Validate ¶
func (this *UpdateRequest) Validate() error
func (*UpdateRequest) XXX_DiscardUnknown ¶
func (m *UpdateRequest) XXX_DiscardUnknown()
func (*UpdateRequest) XXX_Marshal ¶
func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateRequest) XXX_Merge ¶
func (m *UpdateRequest) XXX_Merge(src proto.Message)
func (*UpdateRequest) XXX_Size ¶
func (m *UpdateRequest) XXX_Size() int
func (*UpdateRequest) XXX_Unmarshal ¶
func (m *UpdateRequest) XXX_Unmarshal(b []byte) error
type UpdateResponseWrapper ¶
type UpdateResponseWrapper 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 *pipeline.Template `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
UpdateApi返回
func (*UpdateResponseWrapper) Descriptor ¶
func (*UpdateResponseWrapper) Descriptor() ([]byte, []int)
func (*UpdateResponseWrapper) GetCode ¶
func (m *UpdateResponseWrapper) GetCode() int32
func (*UpdateResponseWrapper) GetCodeExplain ¶
func (m *UpdateResponseWrapper) GetCodeExplain() string
func (*UpdateResponseWrapper) GetData ¶
func (m *UpdateResponseWrapper) GetData() *pipeline.Template
func (*UpdateResponseWrapper) GetError ¶
func (m *UpdateResponseWrapper) GetError() string
func (*UpdateResponseWrapper) ProtoMessage ¶
func (*UpdateResponseWrapper) ProtoMessage()
func (*UpdateResponseWrapper) Reset ¶
func (m *UpdateResponseWrapper) Reset()
func (*UpdateResponseWrapper) String ¶
func (m *UpdateResponseWrapper) String() string
func (*UpdateResponseWrapper) Validate ¶
func (this *UpdateResponseWrapper) Validate() error
func (*UpdateResponseWrapper) XXX_DiscardUnknown ¶
func (m *UpdateResponseWrapper) XXX_DiscardUnknown()
func (*UpdateResponseWrapper) XXX_Marshal ¶
func (m *UpdateResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateResponseWrapper) XXX_Merge ¶
func (m *UpdateResponseWrapper) XXX_Merge(src proto.Message)
func (*UpdateResponseWrapper) XXX_Size ¶
func (m *UpdateResponseWrapper) XXX_Size() int
func (*UpdateResponseWrapper) XXX_Unmarshal ¶
func (m *UpdateResponseWrapper) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.