instance_path_search

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 Client

type Client interface {
	PathSearchV3(ctx context.Context, in *PathSearchV3Request) (*PathSearchV3Response, error)
}

Client is the client API for instance_path_search 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 PathSearchV3Request

type PathSearchV3Request struct {
	//
	//查询路径
	Path []*cmdb.StrategyPathNode `protobuf:"bytes,1,rep,name=path,proto3" json:"path" form:"path"`
	//
	//以alias_id表示的字段排序 {"APP.name": -1}
	AliasIdSort *types.Struct `protobuf:"bytes,2,opt,name=alias_id_sort,json=aliasIdSort,proto3" json:"alias_id_sort" form:"alias_id_sort"`
	//
	//页数
	Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page" form:"page"`
	//
	//页大小
	PageSize             int32    `protobuf:"varint,4,opt,name=pageSize,proto3" json:"pageSize" form:"pageSize"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

PathSearchV3请求

func (*PathSearchV3Request) Descriptor

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

func (*PathSearchV3Request) GetAliasIdSort

func (m *PathSearchV3Request) GetAliasIdSort() *types.Struct

func (*PathSearchV3Request) GetPage

func (m *PathSearchV3Request) GetPage() int32

func (*PathSearchV3Request) GetPageSize

func (m *PathSearchV3Request) GetPageSize() int32

func (*PathSearchV3Request) GetPath

func (m *PathSearchV3Request) GetPath() []*cmdb.StrategyPathNode

func (*PathSearchV3Request) ProtoMessage

func (*PathSearchV3Request) ProtoMessage()

func (*PathSearchV3Request) Reset

func (m *PathSearchV3Request) Reset()

func (*PathSearchV3Request) String

func (m *PathSearchV3Request) String() string

func (*PathSearchV3Request) Validate

func (this *PathSearchV3Request) Validate() error

func (*PathSearchV3Request) XXX_DiscardUnknown

func (m *PathSearchV3Request) XXX_DiscardUnknown()

func (*PathSearchV3Request) XXX_Marshal

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

func (*PathSearchV3Request) XXX_Merge

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

func (*PathSearchV3Request) XXX_Size

func (m *PathSearchV3Request) XXX_Size() int

func (*PathSearchV3Request) XXX_Unmarshal

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

type PathSearchV3Response

type PathSearchV3Response 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"`
	//
	//查询总数
	Total int32 `protobuf:"varint,3,opt,name=total,proto3" json:"total" form:"total"`
	//
	//结果列表 eg: [[{"_object_id": "APP","attrId1": 2.355, "instanceId": "xxxx","name": "test1253" },{"_object_id": "CLUSTER","instanceId": "xxxxx","name": "dev"}]]
	List                 *types.Value `protobuf:"bytes,4,opt,name=list,proto3" json:"list" form:"list"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

PathSearchV3返回

func (*PathSearchV3Response) Descriptor

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

func (*PathSearchV3Response) GetList

func (m *PathSearchV3Response) GetList() *types.Value

func (*PathSearchV3Response) GetPage

func (m *PathSearchV3Response) GetPage() int32

func (*PathSearchV3Response) GetPageSize

func (m *PathSearchV3Response) GetPageSize() int32

func (*PathSearchV3Response) GetTotal

func (m *PathSearchV3Response) GetTotal() int32

func (*PathSearchV3Response) ProtoMessage

func (*PathSearchV3Response) ProtoMessage()

func (*PathSearchV3Response) Reset

func (m *PathSearchV3Response) Reset()

func (*PathSearchV3Response) String

func (m *PathSearchV3Response) String() string

func (*PathSearchV3Response) Validate

func (this *PathSearchV3Response) Validate() error

func (*PathSearchV3Response) XXX_DiscardUnknown

func (m *PathSearchV3Response) XXX_DiscardUnknown()

func (*PathSearchV3Response) XXX_Marshal

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

func (*PathSearchV3Response) XXX_Merge

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

func (*PathSearchV3Response) XXX_Size

func (m *PathSearchV3Response) XXX_Size() int

func (*PathSearchV3Response) XXX_Unmarshal

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

type PathSearchV3ResponseWrapper

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

PathSearchV3Api返回

func (*PathSearchV3ResponseWrapper) Descriptor

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

func (*PathSearchV3ResponseWrapper) GetCode

func (m *PathSearchV3ResponseWrapper) GetCode() int32

func (*PathSearchV3ResponseWrapper) GetCodeExplain

func (m *PathSearchV3ResponseWrapper) GetCodeExplain() string

func (*PathSearchV3ResponseWrapper) GetData

func (*PathSearchV3ResponseWrapper) GetError

func (m *PathSearchV3ResponseWrapper) GetError() string

func (*PathSearchV3ResponseWrapper) ProtoMessage

func (*PathSearchV3ResponseWrapper) ProtoMessage()

func (*PathSearchV3ResponseWrapper) Reset

func (m *PathSearchV3ResponseWrapper) Reset()

func (*PathSearchV3ResponseWrapper) String

func (m *PathSearchV3ResponseWrapper) String() string

func (*PathSearchV3ResponseWrapper) Validate

func (this *PathSearchV3ResponseWrapper) Validate() error

func (*PathSearchV3ResponseWrapper) XXX_DiscardUnknown

func (m *PathSearchV3ResponseWrapper) XXX_DiscardUnknown()

func (*PathSearchV3ResponseWrapper) XXX_Marshal

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

func (*PathSearchV3ResponseWrapper) XXX_Merge

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

func (*PathSearchV3ResponseWrapper) XXX_Size

func (m *PathSearchV3ResponseWrapper) XXX_Size() int

func (*PathSearchV3ResponseWrapper) XXX_Unmarshal

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

type Service

type Service interface {
	PathSearchV3(context.Context, *PathSearchV3Request) (*PathSearchV3Response, error)
}

Service is the server API for instance_path_search service.

Jump to

Keyboard shortcuts

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