view

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: 10 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 {
	CreateView(ctx context.Context, in *CreateViewRequest) (*CreateViewResponse, error)
	DeleteView(ctx context.Context, in *DeleteViewRequest) (*DeleteViewResponse, error)
	FetchCmdbBusinessView(ctx context.Context, in *FetchCmdbBusinessViewRequest) (*topology.View, error)
	FetchOriginView(ctx context.Context, in *FetchOriginViewRequest) (*topology.View, error)
	GetView(ctx context.Context, in *GetViewRequest) (*topology.View, error)
	ListView(ctx context.Context, in *ListViewRequest) (*ListViewResponse, error)
	UpdateView(ctx context.Context, in *UpdateViewRequest) (*UpdateViewResponse, error)
}

Client is the client API for view 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 CreateViewRequest

type CreateViewRequest struct {
	//
	//名称
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"`
	//
	//允许可读用户
	ReadAuthorizers []string `protobuf:"bytes,2,rep,name=readAuthorizers,proto3" json:"readAuthorizers" form:"readAuthorizers"`
	//
	//允许可写用户
	WriteAuthorizers []string `protobuf:"bytes,3,rep,name=writeAuthorizers,proto3" json:"writeAuthorizers" form:"writeAuthorizers"`
	//
	//版本
	Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version" form:"version"`
	//
	//根节点
	RootNode *topology.Node `protobuf:"bytes,5,opt,name=rootNode,proto3" json:"rootNode" form:"rootNode"`
	//
	//节点
	Nodes []*topology.Node `protobuf:"bytes,6,rep,name=nodes,proto3" json:"nodes" form:"nodes"`
	//
	//线
	Links []*topology.Link `protobuf:"bytes,7,rep,name=links,proto3" json:"links" form:"links"`
	//
	//区域
	Areas []*topology.Area `protobuf:"bytes,8,rep,name=areas,proto3" json:"areas" form:"areas"`
	//
	//标注
	Notes []*topology.Note `protobuf:"bytes,9,rep,name=notes,proto3" json:"notes" form:"notes"`
	//
	//差异
	Diff                 *CreateViewRequest_Diff `protobuf:"bytes,10,opt,name=diff,proto3" json:"diff" form:"diff"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

CreateView请求

func (*CreateViewRequest) Descriptor

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

func (*CreateViewRequest) GetAreas

func (m *CreateViewRequest) GetAreas() []*topology.Area

func (*CreateViewRequest) GetDiff

func (m *CreateViewRequest) GetLinks() []*topology.Link

func (*CreateViewRequest) GetName

func (m *CreateViewRequest) GetName() string

func (*CreateViewRequest) GetNodes

func (m *CreateViewRequest) GetNodes() []*topology.Node

func (*CreateViewRequest) GetNotes

func (m *CreateViewRequest) GetNotes() []*topology.Note

func (*CreateViewRequest) GetReadAuthorizers

func (m *CreateViewRequest) GetReadAuthorizers() []string

func (*CreateViewRequest) GetRootNode

func (m *CreateViewRequest) GetRootNode() *topology.Node

func (*CreateViewRequest) GetVersion

func (m *CreateViewRequest) GetVersion() string

func (*CreateViewRequest) GetWriteAuthorizers

func (m *CreateViewRequest) GetWriteAuthorizers() []string

func (*CreateViewRequest) ProtoMessage

func (*CreateViewRequest) ProtoMessage()

func (*CreateViewRequest) Reset

func (m *CreateViewRequest) Reset()

func (*CreateViewRequest) String

func (m *CreateViewRequest) String() string

func (*CreateViewRequest) Validate

func (this *CreateViewRequest) Validate() error

func (*CreateViewRequest) XXX_DiscardUnknown

func (m *CreateViewRequest) XXX_DiscardUnknown()

func (*CreateViewRequest) XXX_Marshal

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

func (*CreateViewRequest) XXX_Merge

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

func (*CreateViewRequest) XXX_Size

func (m *CreateViewRequest) XXX_Size() int

func (*CreateViewRequest) XXX_Unmarshal

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

type CreateViewRequest_Diff

type CreateViewRequest_Diff struct {
	//
	//新增节点
	AddNodes []*topology.Node `protobuf:"bytes,1,rep,name=addNodes,proto3" json:"addNodes" form:"addNodes"`
	//
	//已删除节点
	RemoveNodes []*topology.Node `protobuf:"bytes,2,rep,name=removeNodes,proto3" json:"removeNodes" form:"removeNodes"`
	//
	//新增线
	AddLinks []*topology.Link `protobuf:"bytes,3,rep,name=addLinks,proto3" json:"addLinks" form:"addLinks"`
	//
	//已删除线
	RemoveLinks          []*topology.Link `protobuf:"bytes,4,rep,name=removeLinks,proto3" json:"removeLinks" form:"removeLinks"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*CreateViewRequest_Diff) Descriptor

func (*CreateViewRequest_Diff) Descriptor() ([]byte, []int)
func (m *CreateViewRequest_Diff) GetAddLinks() []*topology.Link

func (*CreateViewRequest_Diff) GetAddNodes

func (m *CreateViewRequest_Diff) GetAddNodes() []*topology.Node
func (m *CreateViewRequest_Diff) GetRemoveLinks() []*topology.Link

func (*CreateViewRequest_Diff) GetRemoveNodes

func (m *CreateViewRequest_Diff) GetRemoveNodes() []*topology.Node

func (*CreateViewRequest_Diff) ProtoMessage

func (*CreateViewRequest_Diff) ProtoMessage()

func (*CreateViewRequest_Diff) Reset

func (m *CreateViewRequest_Diff) Reset()

func (*CreateViewRequest_Diff) String

func (m *CreateViewRequest_Diff) String() string

func (*CreateViewRequest_Diff) Validate

func (this *CreateViewRequest_Diff) Validate() error

func (*CreateViewRequest_Diff) XXX_DiscardUnknown

func (m *CreateViewRequest_Diff) XXX_DiscardUnknown()

func (*CreateViewRequest_Diff) XXX_Marshal

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

func (*CreateViewRequest_Diff) XXX_Merge

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

func (*CreateViewRequest_Diff) XXX_Size

func (m *CreateViewRequest_Diff) XXX_Size() int

func (*CreateViewRequest_Diff) XXX_Unmarshal

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

type CreateViewResponse

type CreateViewResponse 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:"-"`
}

CreateView返回

func (*CreateViewResponse) Descriptor

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

func (*CreateViewResponse) GetId

func (m *CreateViewResponse) GetId() string

func (*CreateViewResponse) ProtoMessage

func (*CreateViewResponse) ProtoMessage()

func (*CreateViewResponse) Reset

func (m *CreateViewResponse) Reset()

func (*CreateViewResponse) String

func (m *CreateViewResponse) String() string

func (*CreateViewResponse) Validate

func (this *CreateViewResponse) Validate() error

func (*CreateViewResponse) XXX_DiscardUnknown

func (m *CreateViewResponse) XXX_DiscardUnknown()

func (*CreateViewResponse) XXX_Marshal

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

func (*CreateViewResponse) XXX_Merge

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

func (*CreateViewResponse) XXX_Size

func (m *CreateViewResponse) XXX_Size() int

func (*CreateViewResponse) XXX_Unmarshal

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

type CreateViewResponseWrapper

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

CreateViewApi返回

func (*CreateViewResponseWrapper) Descriptor

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

func (*CreateViewResponseWrapper) GetCode

func (m *CreateViewResponseWrapper) GetCode() int32

func (*CreateViewResponseWrapper) GetCodeExplain

func (m *CreateViewResponseWrapper) GetCodeExplain() string

func (*CreateViewResponseWrapper) GetData

func (*CreateViewResponseWrapper) GetError

func (m *CreateViewResponseWrapper) GetError() string

func (*CreateViewResponseWrapper) ProtoMessage

func (*CreateViewResponseWrapper) ProtoMessage()

func (*CreateViewResponseWrapper) Reset

func (m *CreateViewResponseWrapper) Reset()

func (*CreateViewResponseWrapper) String

func (m *CreateViewResponseWrapper) String() string

func (*CreateViewResponseWrapper) Validate

func (this *CreateViewResponseWrapper) Validate() error

func (*CreateViewResponseWrapper) XXX_DiscardUnknown

func (m *CreateViewResponseWrapper) XXX_DiscardUnknown()

func (*CreateViewResponseWrapper) XXX_Marshal

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

func (*CreateViewResponseWrapper) XXX_Merge

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

func (*CreateViewResponseWrapper) XXX_Size

func (m *CreateViewResponseWrapper) XXX_Size() int

func (*CreateViewResponseWrapper) XXX_Unmarshal

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

type DeleteViewRequest

type DeleteViewRequest 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:"-"`
}

DeleteView请求

func (*DeleteViewRequest) Descriptor

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

func (*DeleteViewRequest) GetId

func (m *DeleteViewRequest) GetId() string

func (*DeleteViewRequest) ProtoMessage

func (*DeleteViewRequest) ProtoMessage()

func (*DeleteViewRequest) Reset

func (m *DeleteViewRequest) Reset()

func (*DeleteViewRequest) String

func (m *DeleteViewRequest) String() string

func (*DeleteViewRequest) Validate

func (this *DeleteViewRequest) Validate() error

func (*DeleteViewRequest) XXX_DiscardUnknown

func (m *DeleteViewRequest) XXX_DiscardUnknown()

func (*DeleteViewRequest) XXX_Marshal

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

func (*DeleteViewRequest) XXX_Merge

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

func (*DeleteViewRequest) XXX_Size

func (m *DeleteViewRequest) XXX_Size() int

func (*DeleteViewRequest) XXX_Unmarshal

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

type DeleteViewResponse

type DeleteViewResponse 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:"-"`
}

DeleteView返回

func (*DeleteViewResponse) Descriptor

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

func (*DeleteViewResponse) GetId

func (m *DeleteViewResponse) GetId() string

func (*DeleteViewResponse) ProtoMessage

func (*DeleteViewResponse) ProtoMessage()

func (*DeleteViewResponse) Reset

func (m *DeleteViewResponse) Reset()

func (*DeleteViewResponse) String

func (m *DeleteViewResponse) String() string

func (*DeleteViewResponse) Validate

func (this *DeleteViewResponse) Validate() error

func (*DeleteViewResponse) XXX_DiscardUnknown

func (m *DeleteViewResponse) XXX_DiscardUnknown()

func (*DeleteViewResponse) XXX_Marshal

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

func (*DeleteViewResponse) XXX_Merge

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

func (*DeleteViewResponse) XXX_Size

func (m *DeleteViewResponse) XXX_Size() int

func (*DeleteViewResponse) XXX_Unmarshal

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

type DeleteViewResponseWrapper

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

DeleteViewApi返回

func (*DeleteViewResponseWrapper) Descriptor

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

func (*DeleteViewResponseWrapper) GetCode

func (m *DeleteViewResponseWrapper) GetCode() int32

func (*DeleteViewResponseWrapper) GetCodeExplain

func (m *DeleteViewResponseWrapper) GetCodeExplain() string

func (*DeleteViewResponseWrapper) GetData

func (*DeleteViewResponseWrapper) GetError

func (m *DeleteViewResponseWrapper) GetError() string

func (*DeleteViewResponseWrapper) ProtoMessage

func (*DeleteViewResponseWrapper) ProtoMessage()

func (*DeleteViewResponseWrapper) Reset

func (m *DeleteViewResponseWrapper) Reset()

func (*DeleteViewResponseWrapper) String

func (m *DeleteViewResponseWrapper) String() string

func (*DeleteViewResponseWrapper) Validate

func (this *DeleteViewResponseWrapper) Validate() error

func (*DeleteViewResponseWrapper) XXX_DiscardUnknown

func (m *DeleteViewResponseWrapper) XXX_DiscardUnknown()

func (*DeleteViewResponseWrapper) XXX_Marshal

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

func (*DeleteViewResponseWrapper) XXX_Merge

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

func (*DeleteViewResponseWrapper) XXX_Size

func (m *DeleteViewResponseWrapper) XXX_Size() int

func (*DeleteViewResponseWrapper) XXX_Unmarshal

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

type FetchCmdbBusinessViewRequest

type FetchCmdbBusinessViewRequest struct {
	//
	//实例ID
	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:"-"`
}

FetchCmdbBusinessView请求

func (*FetchCmdbBusinessViewRequest) Descriptor

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

func (*FetchCmdbBusinessViewRequest) GetInstanceId

func (m *FetchCmdbBusinessViewRequest) GetInstanceId() string

func (*FetchCmdbBusinessViewRequest) ProtoMessage

func (*FetchCmdbBusinessViewRequest) ProtoMessage()

func (*FetchCmdbBusinessViewRequest) Reset

func (m *FetchCmdbBusinessViewRequest) Reset()

func (*FetchCmdbBusinessViewRequest) String

func (*FetchCmdbBusinessViewRequest) Validate

func (this *FetchCmdbBusinessViewRequest) Validate() error

func (*FetchCmdbBusinessViewRequest) XXX_DiscardUnknown

func (m *FetchCmdbBusinessViewRequest) XXX_DiscardUnknown()

func (*FetchCmdbBusinessViewRequest) XXX_Marshal

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

func (*FetchCmdbBusinessViewRequest) XXX_Merge

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

func (*FetchCmdbBusinessViewRequest) XXX_Size

func (m *FetchCmdbBusinessViewRequest) XXX_Size() int

func (*FetchCmdbBusinessViewRequest) XXX_Unmarshal

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

type FetchCmdbBusinessViewResponseWrapper

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

FetchCmdbBusinessViewApi返回

func (*FetchCmdbBusinessViewResponseWrapper) Descriptor

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

func (*FetchCmdbBusinessViewResponseWrapper) GetCode

func (*FetchCmdbBusinessViewResponseWrapper) GetCodeExplain

func (m *FetchCmdbBusinessViewResponseWrapper) GetCodeExplain() string

func (*FetchCmdbBusinessViewResponseWrapper) GetData

func (*FetchCmdbBusinessViewResponseWrapper) GetError

func (*FetchCmdbBusinessViewResponseWrapper) ProtoMessage

func (*FetchCmdbBusinessViewResponseWrapper) ProtoMessage()

func (*FetchCmdbBusinessViewResponseWrapper) Reset

func (*FetchCmdbBusinessViewResponseWrapper) String

func (*FetchCmdbBusinessViewResponseWrapper) Validate

func (*FetchCmdbBusinessViewResponseWrapper) XXX_DiscardUnknown

func (m *FetchCmdbBusinessViewResponseWrapper) XXX_DiscardUnknown()

func (*FetchCmdbBusinessViewResponseWrapper) XXX_Marshal

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

func (*FetchCmdbBusinessViewResponseWrapper) XXX_Merge

func (*FetchCmdbBusinessViewResponseWrapper) XXX_Size

func (*FetchCmdbBusinessViewResponseWrapper) XXX_Unmarshal

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

type FetchOriginViewRequest

type FetchOriginViewRequest struct {
	//
	//模型ID
	ObjectId string `protobuf:"bytes,1,opt,name=objectId,proto3" json:"objectId" form:"objectId"`
	//
	//实例ID
	InstanceId string `protobuf:"bytes,2,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
	//
	//相关关系字段
	Relations []*topology.Relation `protobuf:"bytes,3,rep,name=relations,proto3" json:"relations" form:"relations"`
	//
	//数据源
	DataSource string `protobuf:"bytes,4,opt,name=dataSource,proto3" json:"dataSource" form:"dataSource"`
	//
	//隐藏关系
	HideLinks            []*topology.HideLink `protobuf:"bytes,5,rep,name=hideLinks,proto3" json:"hideLinks" form:"hideLinks"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

FetchOriginView请求

func (*FetchOriginViewRequest) Descriptor

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

func (*FetchOriginViewRequest) GetDataSource

func (m *FetchOriginViewRequest) GetDataSource() string
func (m *FetchOriginViewRequest) GetHideLinks() []*topology.HideLink

func (*FetchOriginViewRequest) GetInstanceId

func (m *FetchOriginViewRequest) GetInstanceId() string

func (*FetchOriginViewRequest) GetObjectId

func (m *FetchOriginViewRequest) GetObjectId() string

func (*FetchOriginViewRequest) GetRelations

func (m *FetchOriginViewRequest) GetRelations() []*topology.Relation

func (*FetchOriginViewRequest) ProtoMessage

func (*FetchOriginViewRequest) ProtoMessage()

func (*FetchOriginViewRequest) Reset

func (m *FetchOriginViewRequest) Reset()

func (*FetchOriginViewRequest) String

func (m *FetchOriginViewRequest) String() string

func (*FetchOriginViewRequest) Validate

func (this *FetchOriginViewRequest) Validate() error

func (*FetchOriginViewRequest) XXX_DiscardUnknown

func (m *FetchOriginViewRequest) XXX_DiscardUnknown()

func (*FetchOriginViewRequest) XXX_Marshal

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

func (*FetchOriginViewRequest) XXX_Merge

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

func (*FetchOriginViewRequest) XXX_Size

func (m *FetchOriginViewRequest) XXX_Size() int

func (*FetchOriginViewRequest) XXX_Unmarshal

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

type FetchOriginViewResponseWrapper

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

FetchOriginViewApi返回

func (*FetchOriginViewResponseWrapper) Descriptor

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

func (*FetchOriginViewResponseWrapper) GetCode

func (*FetchOriginViewResponseWrapper) GetCodeExplain

func (m *FetchOriginViewResponseWrapper) GetCodeExplain() string

func (*FetchOriginViewResponseWrapper) GetData

func (*FetchOriginViewResponseWrapper) GetError

func (m *FetchOriginViewResponseWrapper) GetError() string

func (*FetchOriginViewResponseWrapper) ProtoMessage

func (*FetchOriginViewResponseWrapper) ProtoMessage()

func (*FetchOriginViewResponseWrapper) Reset

func (m *FetchOriginViewResponseWrapper) Reset()

func (*FetchOriginViewResponseWrapper) String

func (*FetchOriginViewResponseWrapper) Validate

func (this *FetchOriginViewResponseWrapper) Validate() error

func (*FetchOriginViewResponseWrapper) XXX_DiscardUnknown

func (m *FetchOriginViewResponseWrapper) XXX_DiscardUnknown()

func (*FetchOriginViewResponseWrapper) XXX_Marshal

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

func (*FetchOriginViewResponseWrapper) XXX_Merge

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

func (*FetchOriginViewResponseWrapper) XXX_Size

func (m *FetchOriginViewResponseWrapper) XXX_Size() int

func (*FetchOriginViewResponseWrapper) XXX_Unmarshal

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

type GetViewRequest

type GetViewRequest 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:"-"`
}

GetView请求

func (*GetViewRequest) Descriptor

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

func (*GetViewRequest) GetId

func (m *GetViewRequest) GetId() string

func (*GetViewRequest) ProtoMessage

func (*GetViewRequest) ProtoMessage()

func (*GetViewRequest) Reset

func (m *GetViewRequest) Reset()

func (*GetViewRequest) String

func (m *GetViewRequest) String() string

func (*GetViewRequest) Validate

func (this *GetViewRequest) Validate() error

func (*GetViewRequest) XXX_DiscardUnknown

func (m *GetViewRequest) XXX_DiscardUnknown()

func (*GetViewRequest) XXX_Marshal

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

func (*GetViewRequest) XXX_Merge

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

func (*GetViewRequest) XXX_Size

func (m *GetViewRequest) XXX_Size() int

func (*GetViewRequest) XXX_Unmarshal

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

type GetViewResponseWrapper

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

GetViewApi返回

func (*GetViewResponseWrapper) Descriptor

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

func (*GetViewResponseWrapper) GetCode

func (m *GetViewResponseWrapper) GetCode() int32

func (*GetViewResponseWrapper) GetCodeExplain

func (m *GetViewResponseWrapper) GetCodeExplain() string

func (*GetViewResponseWrapper) GetData

func (m *GetViewResponseWrapper) GetData() *topology.View

func (*GetViewResponseWrapper) GetError

func (m *GetViewResponseWrapper) GetError() string

func (*GetViewResponseWrapper) ProtoMessage

func (*GetViewResponseWrapper) ProtoMessage()

func (*GetViewResponseWrapper) Reset

func (m *GetViewResponseWrapper) Reset()

func (*GetViewResponseWrapper) String

func (m *GetViewResponseWrapper) String() string

func (*GetViewResponseWrapper) Validate

func (this *GetViewResponseWrapper) Validate() error

func (*GetViewResponseWrapper) XXX_DiscardUnknown

func (m *GetViewResponseWrapper) XXX_DiscardUnknown()

func (*GetViewResponseWrapper) XXX_Marshal

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

func (*GetViewResponseWrapper) XXX_Merge

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

func (*GetViewResponseWrapper) XXX_Size

func (m *GetViewResponseWrapper) XXX_Size() int

func (*GetViewResponseWrapper) XXX_Unmarshal

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

type ListViewRequest

type ListViewRequest struct {
	//
	//根据视图名称进行过滤
	Q string `protobuf:"bytes,1,opt,name=q,proto3" json:"q" form:"q"`
	//
	//页码
	Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page" form:"page"`
	//
	//每页数据量
	PageSize             int32    `protobuf:"varint,3,opt,name=pageSize,proto3" json:"pageSize" form:"pageSize"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ListView请求

func (*ListViewRequest) Descriptor

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

func (*ListViewRequest) GetPage

func (m *ListViewRequest) GetPage() int32

func (*ListViewRequest) GetPageSize

func (m *ListViewRequest) GetPageSize() int32

func (*ListViewRequest) GetQ

func (m *ListViewRequest) GetQ() string

func (*ListViewRequest) ProtoMessage

func (*ListViewRequest) ProtoMessage()

func (*ListViewRequest) Reset

func (m *ListViewRequest) Reset()

func (*ListViewRequest) String

func (m *ListViewRequest) String() string

func (*ListViewRequest) Validate

func (this *ListViewRequest) Validate() error

func (*ListViewRequest) XXX_DiscardUnknown

func (m *ListViewRequest) XXX_DiscardUnknown()

func (*ListViewRequest) XXX_Marshal

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

func (*ListViewRequest) XXX_Merge

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

func (*ListViewRequest) XXX_Size

func (m *ListViewRequest) XXX_Size() int

func (*ListViewRequest) XXX_Unmarshal

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

type ListViewResponse

type ListViewResponse 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"`
	//
	//数据列表
	List                 []*topology.View `protobuf:"bytes,4,rep,name=list,proto3" json:"list" form:"list"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

ListView返回

func (*ListViewResponse) Descriptor

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

func (*ListViewResponse) GetList

func (m *ListViewResponse) GetList() []*topology.View

func (*ListViewResponse) GetPage

func (m *ListViewResponse) GetPage() int32

func (*ListViewResponse) GetPageSize

func (m *ListViewResponse) GetPageSize() int32

func (*ListViewResponse) GetTotal

func (m *ListViewResponse) GetTotal() int32

func (*ListViewResponse) ProtoMessage

func (*ListViewResponse) ProtoMessage()

func (*ListViewResponse) Reset

func (m *ListViewResponse) Reset()

func (*ListViewResponse) String

func (m *ListViewResponse) String() string

func (*ListViewResponse) Validate

func (this *ListViewResponse) Validate() error

func (*ListViewResponse) XXX_DiscardUnknown

func (m *ListViewResponse) XXX_DiscardUnknown()

func (*ListViewResponse) XXX_Marshal

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

func (*ListViewResponse) XXX_Merge

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

func (*ListViewResponse) XXX_Size

func (m *ListViewResponse) XXX_Size() int

func (*ListViewResponse) XXX_Unmarshal

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

type ListViewResponseWrapper

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

ListViewApi返回

func (*ListViewResponseWrapper) Descriptor

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

func (*ListViewResponseWrapper) GetCode

func (m *ListViewResponseWrapper) GetCode() int32

func (*ListViewResponseWrapper) GetCodeExplain

func (m *ListViewResponseWrapper) GetCodeExplain() string

func (*ListViewResponseWrapper) GetData

func (*ListViewResponseWrapper) GetError

func (m *ListViewResponseWrapper) GetError() string

func (*ListViewResponseWrapper) ProtoMessage

func (*ListViewResponseWrapper) ProtoMessage()

func (*ListViewResponseWrapper) Reset

func (m *ListViewResponseWrapper) Reset()

func (*ListViewResponseWrapper) String

func (m *ListViewResponseWrapper) String() string

func (*ListViewResponseWrapper) Validate

func (this *ListViewResponseWrapper) Validate() error

func (*ListViewResponseWrapper) XXX_DiscardUnknown

func (m *ListViewResponseWrapper) XXX_DiscardUnknown()

func (*ListViewResponseWrapper) XXX_Marshal

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

func (*ListViewResponseWrapper) XXX_Merge

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

func (*ListViewResponseWrapper) XXX_Size

func (m *ListViewResponseWrapper) XXX_Size() int

func (*ListViewResponseWrapper) XXX_Unmarshal

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

type Service

Service is the server API for view service.

type UpdateViewRequest

type UpdateViewRequest 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"`
	//
	//允许可读用户
	ReadAuthorizers []string `protobuf:"bytes,3,rep,name=readAuthorizers,proto3" json:"readAuthorizers" form:"readAuthorizers"`
	//
	//允许可写用户
	WriteAuthorizers []string `protobuf:"bytes,4,rep,name=writeAuthorizers,proto3" json:"writeAuthorizers" form:"writeAuthorizers"`
	//
	//版本
	Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version" form:"version"`
	//
	//根节点
	RootNode *topology.Node `protobuf:"bytes,6,opt,name=rootNode,proto3" json:"rootNode" form:"rootNode"`
	//
	//节点
	Nodes []*topology.Node `protobuf:"bytes,7,rep,name=nodes,proto3" json:"nodes" form:"nodes"`
	//
	//线
	Links []*topology.Link `protobuf:"bytes,8,rep,name=links,proto3" json:"links" form:"links"`
	//
	//区域
	Areas []*topology.Area `protobuf:"bytes,9,rep,name=areas,proto3" json:"areas" form:"areas"`
	//
	//标注
	Notes []*topology.Note `protobuf:"bytes,10,rep,name=notes,proto3" json:"notes" form:"notes"`
	//
	//差异
	Diff                 *UpdateViewRequest_Diff `protobuf:"bytes,11,opt,name=diff,proto3" json:"diff" form:"diff"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

UpdateView请求

func (*UpdateViewRequest) Descriptor

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

func (*UpdateViewRequest) GetAreas

func (m *UpdateViewRequest) GetAreas() []*topology.Area

func (*UpdateViewRequest) GetDiff

func (*UpdateViewRequest) GetId

func (m *UpdateViewRequest) GetId() string
func (m *UpdateViewRequest) GetLinks() []*topology.Link

func (*UpdateViewRequest) GetName

func (m *UpdateViewRequest) GetName() string

func (*UpdateViewRequest) GetNodes

func (m *UpdateViewRequest) GetNodes() []*topology.Node

func (*UpdateViewRequest) GetNotes

func (m *UpdateViewRequest) GetNotes() []*topology.Note

func (*UpdateViewRequest) GetReadAuthorizers

func (m *UpdateViewRequest) GetReadAuthorizers() []string

func (*UpdateViewRequest) GetRootNode

func (m *UpdateViewRequest) GetRootNode() *topology.Node

func (*UpdateViewRequest) GetVersion

func (m *UpdateViewRequest) GetVersion() string

func (*UpdateViewRequest) GetWriteAuthorizers

func (m *UpdateViewRequest) GetWriteAuthorizers() []string

func (*UpdateViewRequest) ProtoMessage

func (*UpdateViewRequest) ProtoMessage()

func (*UpdateViewRequest) Reset

func (m *UpdateViewRequest) Reset()

func (*UpdateViewRequest) String

func (m *UpdateViewRequest) String() string

func (*UpdateViewRequest) Validate

func (this *UpdateViewRequest) Validate() error

func (*UpdateViewRequest) XXX_DiscardUnknown

func (m *UpdateViewRequest) XXX_DiscardUnknown()

func (*UpdateViewRequest) XXX_Marshal

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

func (*UpdateViewRequest) XXX_Merge

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

func (*UpdateViewRequest) XXX_Size

func (m *UpdateViewRequest) XXX_Size() int

func (*UpdateViewRequest) XXX_Unmarshal

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

type UpdateViewRequest_Diff

type UpdateViewRequest_Diff struct {
	//
	//新增节点
	AddNodes []*topology.Node `protobuf:"bytes,1,rep,name=addNodes,proto3" json:"addNodes" form:"addNodes"`
	//
	//已删除节点
	RemoveNodes []*topology.Node `protobuf:"bytes,2,rep,name=removeNodes,proto3" json:"removeNodes" form:"removeNodes"`
	//
	//新增线
	AddLinks []*topology.Link `protobuf:"bytes,3,rep,name=addLinks,proto3" json:"addLinks" form:"addLinks"`
	//
	//已删除线
	RemoveLinks          []*topology.Link `protobuf:"bytes,4,rep,name=removeLinks,proto3" json:"removeLinks" form:"removeLinks"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*UpdateViewRequest_Diff) Descriptor

func (*UpdateViewRequest_Diff) Descriptor() ([]byte, []int)
func (m *UpdateViewRequest_Diff) GetAddLinks() []*topology.Link

func (*UpdateViewRequest_Diff) GetAddNodes

func (m *UpdateViewRequest_Diff) GetAddNodes() []*topology.Node
func (m *UpdateViewRequest_Diff) GetRemoveLinks() []*topology.Link

func (*UpdateViewRequest_Diff) GetRemoveNodes

func (m *UpdateViewRequest_Diff) GetRemoveNodes() []*topology.Node

func (*UpdateViewRequest_Diff) ProtoMessage

func (*UpdateViewRequest_Diff) ProtoMessage()

func (*UpdateViewRequest_Diff) Reset

func (m *UpdateViewRequest_Diff) Reset()

func (*UpdateViewRequest_Diff) String

func (m *UpdateViewRequest_Diff) String() string

func (*UpdateViewRequest_Diff) Validate

func (this *UpdateViewRequest_Diff) Validate() error

func (*UpdateViewRequest_Diff) XXX_DiscardUnknown

func (m *UpdateViewRequest_Diff) XXX_DiscardUnknown()

func (*UpdateViewRequest_Diff) XXX_Marshal

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

func (*UpdateViewRequest_Diff) XXX_Merge

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

func (*UpdateViewRequest_Diff) XXX_Size

func (m *UpdateViewRequest_Diff) XXX_Size() int

func (*UpdateViewRequest_Diff) XXX_Unmarshal

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

type UpdateViewResponse

type UpdateViewResponse 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:"-"`
}

UpdateView返回

func (*UpdateViewResponse) Descriptor

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

func (*UpdateViewResponse) GetId

func (m *UpdateViewResponse) GetId() string

func (*UpdateViewResponse) ProtoMessage

func (*UpdateViewResponse) ProtoMessage()

func (*UpdateViewResponse) Reset

func (m *UpdateViewResponse) Reset()

func (*UpdateViewResponse) String

func (m *UpdateViewResponse) String() string

func (*UpdateViewResponse) Validate

func (this *UpdateViewResponse) Validate() error

func (*UpdateViewResponse) XXX_DiscardUnknown

func (m *UpdateViewResponse) XXX_DiscardUnknown()

func (*UpdateViewResponse) XXX_Marshal

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

func (*UpdateViewResponse) XXX_Merge

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

func (*UpdateViewResponse) XXX_Size

func (m *UpdateViewResponse) XXX_Size() int

func (*UpdateViewResponse) XXX_Unmarshal

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

type UpdateViewResponseWrapper

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

UpdateViewApi返回

func (*UpdateViewResponseWrapper) Descriptor

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

func (*UpdateViewResponseWrapper) GetCode

func (m *UpdateViewResponseWrapper) GetCode() int32

func (*UpdateViewResponseWrapper) GetCodeExplain

func (m *UpdateViewResponseWrapper) GetCodeExplain() string

func (*UpdateViewResponseWrapper) GetData

func (*UpdateViewResponseWrapper) GetError

func (m *UpdateViewResponseWrapper) GetError() string

func (*UpdateViewResponseWrapper) ProtoMessage

func (*UpdateViewResponseWrapper) ProtoMessage()

func (*UpdateViewResponseWrapper) Reset

func (m *UpdateViewResponseWrapper) Reset()

func (*UpdateViewResponseWrapper) String

func (m *UpdateViewResponseWrapper) String() string

func (*UpdateViewResponseWrapper) Validate

func (this *UpdateViewResponseWrapper) Validate() error

func (*UpdateViewResponseWrapper) XXX_DiscardUnknown

func (m *UpdateViewResponseWrapper) XXX_DiscardUnknown()

func (*UpdateViewResponseWrapper) XXX_Marshal

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

func (*UpdateViewResponseWrapper) XXX_Merge

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

func (*UpdateViewResponseWrapper) XXX_Size

func (m *UpdateViewResponseWrapper) XXX_Size() int

func (*UpdateViewResponseWrapper) XXX_Unmarshal

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

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