metatable

package
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterFormatHandler added in v1.13.0

func RegisterFormatHandler(s server.Server, hdlr FormatHandler, opts ...server.HandlerOption) error

func RegisterHealthyHandler

func RegisterHealthyHandler(s server.Server, hdlr HealthyHandler, opts ...server.HandlerOption) error

func RegisterSchemaHandler added in v0.8.0

func RegisterSchemaHandler(s server.Server, hdlr SchemaHandler, opts ...server.HandlerOption) error

func RegisterSourceHandler added in v0.5.0

func RegisterSourceHandler(s server.Server, hdlr SourceHandler, opts ...server.HandlerOption) error

func RegisterVocabularyHandler added in v0.2.0

func RegisterVocabularyHandler(s server.Server, hdlr VocabularyHandler, opts ...server.HandlerOption) error

Types

type BlankResponse added in v0.2.0

type BlankResponse struct {
	Status               *Status  `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

空白回复

func (*BlankResponse) Descriptor added in v0.2.0

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

func (*BlankResponse) GetStatus added in v0.2.0

func (m *BlankResponse) GetStatus() *Status

func (*BlankResponse) ProtoMessage added in v0.2.0

func (*BlankResponse) ProtoMessage()

func (*BlankResponse) Reset added in v0.2.0

func (m *BlankResponse) Reset()

func (*BlankResponse) String added in v0.2.0

func (m *BlankResponse) String() string

func (*BlankResponse) XXX_DiscardUnknown added in v0.2.0

func (m *BlankResponse) XXX_DiscardUnknown()

func (*BlankResponse) XXX_Marshal added in v0.2.0

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

func (*BlankResponse) XXX_Merge added in v0.2.0

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

func (*BlankResponse) XXX_Size added in v0.2.0

func (m *BlankResponse) XXX_Size() int

func (*BlankResponse) XXX_Unmarshal added in v0.2.0

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

type DeleteRequest added in v0.7.0

type DeleteRequest struct {
	Uuid                 string   `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

删除的请求

func (*DeleteRequest) Descriptor added in v0.7.0

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

func (*DeleteRequest) GetUuid added in v0.7.0

func (m *DeleteRequest) GetUuid() string

func (*DeleteRequest) ProtoMessage added in v0.7.0

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) Reset added in v0.7.0

func (m *DeleteRequest) Reset()

func (*DeleteRequest) String added in v0.7.0

func (m *DeleteRequest) String() string

func (*DeleteRequest) XXX_DiscardUnknown added in v0.7.0

func (m *DeleteRequest) XXX_DiscardUnknown()

func (*DeleteRequest) XXX_Marshal added in v0.7.0

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

func (*DeleteRequest) XXX_Merge added in v0.7.0

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

func (*DeleteRequest) XXX_Size added in v0.7.0

func (m *DeleteRequest) XXX_Size() int

func (*DeleteRequest) XXX_Unmarshal added in v0.7.0

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

type EchoRequest

type EchoRequest struct {
	Msg                  string   `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

回显的请求

func (*EchoRequest) Descriptor

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

func (*EchoRequest) GetMsg

func (m *EchoRequest) GetMsg() string

func (*EchoRequest) ProtoMessage

func (*EchoRequest) ProtoMessage()

func (*EchoRequest) Reset

func (m *EchoRequest) Reset()

func (*EchoRequest) String

func (m *EchoRequest) String() string

func (*EchoRequest) XXX_DiscardUnknown

func (m *EchoRequest) XXX_DiscardUnknown()

func (*EchoRequest) XXX_Marshal

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

func (*EchoRequest) XXX_Merge

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

func (*EchoRequest) XXX_Size

func (m *EchoRequest) XXX_Size() int

func (*EchoRequest) XXX_Unmarshal

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

type EchoResponse

type EchoResponse struct {
	Msg                  string   `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

回显的回复

func (*EchoResponse) Descriptor

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

func (*EchoResponse) GetMsg

func (m *EchoResponse) GetMsg() string

func (*EchoResponse) ProtoMessage

func (*EchoResponse) ProtoMessage()

func (*EchoResponse) Reset

func (m *EchoResponse) Reset()

func (*EchoResponse) String

func (m *EchoResponse) String() string

func (*EchoResponse) XXX_DiscardUnknown

func (m *EchoResponse) XXX_DiscardUnknown()

func (*EchoResponse) XXX_Marshal

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

func (*EchoResponse) XXX_Merge

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

func (*EchoResponse) XXX_Size

func (m *EchoResponse) XXX_Size() int

func (*EchoResponse) XXX_Unmarshal

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

type FindRequest added in v0.3.0

type FindRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

查找的请求

func (*FindRequest) Descriptor added in v0.3.0

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

func (*FindRequest) GetName added in v0.3.0

func (m *FindRequest) GetName() string

func (*FindRequest) ProtoMessage added in v0.3.0

func (*FindRequest) ProtoMessage()

func (*FindRequest) Reset added in v0.3.0

func (m *FindRequest) Reset()

func (*FindRequest) String added in v0.3.0

func (m *FindRequest) String() string

func (*FindRequest) XXX_DiscardUnknown added in v0.3.0

func (m *FindRequest) XXX_DiscardUnknown()

func (*FindRequest) XXX_Marshal added in v0.3.0

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

func (*FindRequest) XXX_Merge added in v0.3.0

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

func (*FindRequest) XXX_Size added in v0.3.0

func (m *FindRequest) XXX_Size() int

func (*FindRequest) XXX_Unmarshal added in v0.3.0

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

type FormatEntity added in v1.13.0

type FormatEntity struct {
	Uuid                 string           `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Name                 string           `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Pattern              []*PatternEntity `protobuf:"bytes,3,rep,name=pattern,proto3" json:"pattern,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

格式实体

func (*FormatEntity) Descriptor added in v1.13.0

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

func (*FormatEntity) GetName added in v1.13.0

func (m *FormatEntity) GetName() string

func (*FormatEntity) GetPattern added in v1.13.0

func (m *FormatEntity) GetPattern() []*PatternEntity

func (*FormatEntity) GetUuid added in v1.13.0

func (m *FormatEntity) GetUuid() string

func (*FormatEntity) ProtoMessage added in v1.13.0

func (*FormatEntity) ProtoMessage()

func (*FormatEntity) Reset added in v1.13.0

func (m *FormatEntity) Reset()

func (*FormatEntity) String added in v1.13.0

func (m *FormatEntity) String() string

func (*FormatEntity) XXX_DiscardUnknown added in v1.13.0

func (m *FormatEntity) XXX_DiscardUnknown()

func (*FormatEntity) XXX_Marshal added in v1.13.0

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

func (*FormatEntity) XXX_Merge added in v1.13.0

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

func (*FormatEntity) XXX_Size added in v1.13.0

func (m *FormatEntity) XXX_Size() int

func (*FormatEntity) XXX_Unmarshal added in v1.13.0

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

type FormatHandler added in v1.13.0

type FormatHandler interface {
	// 导入YAML
	ImportYaml(context.Context, *ImportYamlRequest, *BlankResponse) error
	// 列举
	List(context.Context, *ListRequest, *FormatListResponse) error
	// 删除
	Delete(context.Context, *DeleteRequest, *BlankResponse) error
}

type FormatListResponse added in v1.13.0

type FormatListResponse struct {
	Status               *Status         `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Total                int64           `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	Entity               []*FormatEntity `protobuf:"bytes,3,rep,name=entity,proto3" json:"entity,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*FormatListResponse) Descriptor added in v1.13.0

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

func (*FormatListResponse) GetEntity added in v1.13.0

func (m *FormatListResponse) GetEntity() []*FormatEntity

func (*FormatListResponse) GetStatus added in v1.13.0

func (m *FormatListResponse) GetStatus() *Status

func (*FormatListResponse) GetTotal added in v1.13.0

func (m *FormatListResponse) GetTotal() int64

func (*FormatListResponse) ProtoMessage added in v1.13.0

func (*FormatListResponse) ProtoMessage()

func (*FormatListResponse) Reset added in v1.13.0

func (m *FormatListResponse) Reset()

func (*FormatListResponse) String added in v1.13.0

func (m *FormatListResponse) String() string

func (*FormatListResponse) XXX_DiscardUnknown added in v1.13.0

func (m *FormatListResponse) XXX_DiscardUnknown()

func (*FormatListResponse) XXX_Marshal added in v1.13.0

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

func (*FormatListResponse) XXX_Merge added in v1.13.0

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

func (*FormatListResponse) XXX_Size added in v1.13.0

func (m *FormatListResponse) XXX_Size() int

func (*FormatListResponse) XXX_Unmarshal added in v1.13.0

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

type FormatService added in v1.13.0

type FormatService interface {
	// 导入YAML
	ImportYaml(ctx context.Context, in *ImportYamlRequest, opts ...client.CallOption) (*BlankResponse, error)
	// 列举
	List(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*FormatListResponse, error)
	// 删除
	Delete(ctx context.Context, in *DeleteRequest, opts ...client.CallOption) (*BlankResponse, error)
}

func NewFormatService added in v1.13.0

func NewFormatService(name string, c client.Client) FormatService

type HealthyHandler

type HealthyHandler interface {
	// 回显
	Echo(context.Context, *EchoRequest, *EchoResponse) error
}

type HealthyService

type HealthyService interface {
	// 回显
	Echo(ctx context.Context, in *EchoRequest, opts ...client.CallOption) (*EchoResponse, error)
}

func NewHealthyService

func NewHealthyService(name string, c client.Client) HealthyService

type ImportYamlRequest added in v0.2.0

type ImportYamlRequest struct {
	Content              string   `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

导入YAML的请求

func (*ImportYamlRequest) Descriptor added in v0.2.0

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

func (*ImportYamlRequest) GetContent added in v0.2.0

func (m *ImportYamlRequest) GetContent() string

func (*ImportYamlRequest) ProtoMessage added in v0.2.0

func (*ImportYamlRequest) ProtoMessage()

func (*ImportYamlRequest) Reset added in v0.2.0

func (m *ImportYamlRequest) Reset()

func (*ImportYamlRequest) String added in v0.2.0

func (m *ImportYamlRequest) String() string

func (*ImportYamlRequest) XXX_DiscardUnknown added in v0.2.0

func (m *ImportYamlRequest) XXX_DiscardUnknown()

func (*ImportYamlRequest) XXX_Marshal added in v0.2.0

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

func (*ImportYamlRequest) XXX_Merge added in v0.2.0

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

func (*ImportYamlRequest) XXX_Size added in v0.2.0

func (m *ImportYamlRequest) XXX_Size() int

func (*ImportYamlRequest) XXX_Unmarshal added in v0.2.0

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

type ListRequest added in v0.3.0

type ListRequest struct {
	Offset               int64    `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	Count                int64    `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

列举的请求

func (*ListRequest) Descriptor added in v0.3.0

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

func (*ListRequest) GetCount added in v0.3.0

func (m *ListRequest) GetCount() int64

func (*ListRequest) GetOffset added in v0.3.0

func (m *ListRequest) GetOffset() int64

func (*ListRequest) ProtoMessage added in v0.3.0

func (*ListRequest) ProtoMessage()

func (*ListRequest) Reset added in v0.3.0

func (m *ListRequest) Reset()

func (*ListRequest) String added in v0.3.0

func (m *ListRequest) String() string

func (*ListRequest) XXX_DiscardUnknown added in v0.3.0

func (m *ListRequest) XXX_DiscardUnknown()

func (*ListRequest) XXX_Marshal added in v0.3.0

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

func (*ListRequest) XXX_Merge added in v0.3.0

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

func (*ListRequest) XXX_Size added in v0.3.0

func (m *ListRequest) XXX_Size() int

func (*ListRequest) XXX_Unmarshal added in v0.3.0

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

type PairEntity added in v1.10.0

type PairEntity struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

键值对实体

func (*PairEntity) Descriptor added in v1.10.0

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

func (*PairEntity) GetKey added in v1.10.0

func (m *PairEntity) GetKey() string

func (*PairEntity) GetValue added in v1.10.0

func (m *PairEntity) GetValue() string

func (*PairEntity) ProtoMessage added in v1.10.0

func (*PairEntity) ProtoMessage()

func (*PairEntity) Reset added in v1.10.0

func (m *PairEntity) Reset()

func (*PairEntity) String added in v1.10.0

func (m *PairEntity) String() string

func (*PairEntity) XXX_DiscardUnknown added in v1.10.0

func (m *PairEntity) XXX_DiscardUnknown()

func (*PairEntity) XXX_Marshal added in v1.10.0

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

func (*PairEntity) XXX_Merge added in v1.10.0

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

func (*PairEntity) XXX_Size added in v1.10.0

func (m *PairEntity) XXX_Size() int

func (*PairEntity) XXX_Unmarshal added in v1.10.0

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

type PatternEntity added in v1.13.0

type PatternEntity struct {
	To                   string   `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
	From                 []string `protobuf:"bytes,2,rep,name=from,proto3" json:"from,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

模式实体

func (*PatternEntity) Descriptor added in v1.13.0

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

func (*PatternEntity) GetFrom added in v1.13.0

func (m *PatternEntity) GetFrom() []string

func (*PatternEntity) GetTo added in v1.13.0

func (m *PatternEntity) GetTo() string

func (*PatternEntity) ProtoMessage added in v1.13.0

func (*PatternEntity) ProtoMessage()

func (*PatternEntity) Reset added in v1.13.0

func (m *PatternEntity) Reset()

func (*PatternEntity) String added in v1.13.0

func (m *PatternEntity) String() string

func (*PatternEntity) XXX_DiscardUnknown added in v1.13.0

func (m *PatternEntity) XXX_DiscardUnknown()

func (*PatternEntity) XXX_Marshal added in v1.13.0

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

func (*PatternEntity) XXX_Merge added in v1.13.0

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

func (*PatternEntity) XXX_Size added in v1.13.0

func (m *PatternEntity) XXX_Size() int

func (*PatternEntity) XXX_Unmarshal added in v1.13.0

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

type RuleEntity added in v0.8.0

type RuleEntity struct {
	Name                 string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Field                string      `protobuf:"bytes,2,opt,name=field,proto3" json:"field,omitempty"`
	Type                 string      `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	Element              string      `protobuf:"bytes,4,opt,name=element,proto3" json:"element,omitempty"`
	Pair                 *PairEntity `protobuf:"bytes,5,opt,name=pair,proto3" json:"pair,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

规则实体

func (*RuleEntity) Descriptor added in v0.8.0

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

func (*RuleEntity) GetElement added in v0.8.0

func (m *RuleEntity) GetElement() string

func (*RuleEntity) GetField added in v0.8.0

func (m *RuleEntity) GetField() string

func (*RuleEntity) GetName added in v1.10.1

func (m *RuleEntity) GetName() string

func (*RuleEntity) GetPair added in v1.10.0

func (m *RuleEntity) GetPair() *PairEntity

func (*RuleEntity) GetType added in v1.10.0

func (m *RuleEntity) GetType() string

func (*RuleEntity) ProtoMessage added in v0.8.0

func (*RuleEntity) ProtoMessage()

func (*RuleEntity) Reset added in v0.8.0

func (m *RuleEntity) Reset()

func (*RuleEntity) String added in v0.8.0

func (m *RuleEntity) String() string

func (*RuleEntity) XXX_DiscardUnknown added in v0.8.0

func (m *RuleEntity) XXX_DiscardUnknown()

func (*RuleEntity) XXX_Marshal added in v0.8.0

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

func (*RuleEntity) XXX_Merge added in v0.8.0

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

func (*RuleEntity) XXX_Size added in v0.8.0

func (m *RuleEntity) XXX_Size() int

func (*RuleEntity) XXX_Unmarshal added in v0.8.0

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

type SchemaEntity added in v0.8.0

type SchemaEntity struct {
	Uuid                 string        `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Name                 string        `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Rule                 []*RuleEntity `protobuf:"bytes,3,rep,name=rule,proto3" json:"rule,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

结构实体

func (*SchemaEntity) Descriptor added in v0.8.0

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

func (*SchemaEntity) GetName added in v0.9.0

func (m *SchemaEntity) GetName() string

func (*SchemaEntity) GetRule added in v0.8.0

func (m *SchemaEntity) GetRule() []*RuleEntity

func (*SchemaEntity) GetUuid added in v0.8.0

func (m *SchemaEntity) GetUuid() string

func (*SchemaEntity) ProtoMessage added in v0.8.0

func (*SchemaEntity) ProtoMessage()

func (*SchemaEntity) Reset added in v0.8.0

func (m *SchemaEntity) Reset()

func (*SchemaEntity) String added in v0.8.0

func (m *SchemaEntity) String() string

func (*SchemaEntity) XXX_DiscardUnknown added in v0.8.0

func (m *SchemaEntity) XXX_DiscardUnknown()

func (*SchemaEntity) XXX_Marshal added in v0.8.0

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

func (*SchemaEntity) XXX_Merge added in v0.8.0

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

func (*SchemaEntity) XXX_Size added in v0.8.0

func (m *SchemaEntity) XXX_Size() int

func (*SchemaEntity) XXX_Unmarshal added in v0.8.0

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

type SchemaHandler added in v0.8.0

type SchemaHandler interface {
	// 导入YAML
	ImportYaml(context.Context, *ImportYamlRequest, *BlankResponse) error
	// 列举
	List(context.Context, *ListRequest, *SchemaListResponse) error
	// 删除
	Delete(context.Context, *DeleteRequest, *BlankResponse) error
}

type SchemaListResponse added in v0.8.0

type SchemaListResponse struct {
	Status               *Status         `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Total                int64           `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	Entity               []*SchemaEntity `protobuf:"bytes,3,rep,name=entity,proto3" json:"entity,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*SchemaListResponse) Descriptor added in v0.8.0

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

func (*SchemaListResponse) GetEntity added in v0.8.0

func (m *SchemaListResponse) GetEntity() []*SchemaEntity

func (*SchemaListResponse) GetStatus added in v0.8.0

func (m *SchemaListResponse) GetStatus() *Status

func (*SchemaListResponse) GetTotal added in v0.8.0

func (m *SchemaListResponse) GetTotal() int64

func (*SchemaListResponse) ProtoMessage added in v0.8.0

func (*SchemaListResponse) ProtoMessage()

func (*SchemaListResponse) Reset added in v0.8.0

func (m *SchemaListResponse) Reset()

func (*SchemaListResponse) String added in v0.8.0

func (m *SchemaListResponse) String() string

func (*SchemaListResponse) XXX_DiscardUnknown added in v0.8.0

func (m *SchemaListResponse) XXX_DiscardUnknown()

func (*SchemaListResponse) XXX_Marshal added in v0.8.0

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

func (*SchemaListResponse) XXX_Merge added in v0.8.0

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

func (*SchemaListResponse) XXX_Size added in v0.8.0

func (m *SchemaListResponse) XXX_Size() int

func (*SchemaListResponse) XXX_Unmarshal added in v0.8.0

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

type SchemaService added in v0.8.0

type SchemaService interface {
	// 导入YAML
	ImportYaml(ctx context.Context, in *ImportYamlRequest, opts ...client.CallOption) (*BlankResponse, error)
	// 列举
	List(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*SchemaListResponse, error)
	// 删除
	Delete(ctx context.Context, in *DeleteRequest, opts ...client.CallOption) (*BlankResponse, error)
}

func NewSchemaService added in v0.8.0

func NewSchemaService(name string, c client.Client) SchemaService

type SourceEntity added in v0.5.0

type SourceEntity struct {
	Uuid                 string   `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Address              string   `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	Expression           string   `protobuf:"bytes,4,opt,name=expression,proto3" json:"expression,omitempty"`
	Attribute            string   `protobuf:"bytes,5,opt,name=attribute,proto3" json:"attribute,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

来源实体

func (*SourceEntity) Descriptor added in v0.5.0

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

func (*SourceEntity) GetAddress added in v0.5.0

func (m *SourceEntity) GetAddress() string

func (*SourceEntity) GetAttribute added in v0.6.0

func (m *SourceEntity) GetAttribute() string

func (*SourceEntity) GetExpression added in v0.5.0

func (m *SourceEntity) GetExpression() string

func (*SourceEntity) GetName added in v0.5.0

func (m *SourceEntity) GetName() string

func (*SourceEntity) GetUuid added in v0.7.0

func (m *SourceEntity) GetUuid() string

func (*SourceEntity) ProtoMessage added in v0.5.0

func (*SourceEntity) ProtoMessage()

func (*SourceEntity) Reset added in v0.5.0

func (m *SourceEntity) Reset()

func (*SourceEntity) String added in v0.5.0

func (m *SourceEntity) String() string

func (*SourceEntity) XXX_DiscardUnknown added in v0.5.0

func (m *SourceEntity) XXX_DiscardUnknown()

func (*SourceEntity) XXX_Marshal added in v0.5.0

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

func (*SourceEntity) XXX_Merge added in v0.5.0

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

func (*SourceEntity) XXX_Size added in v0.5.0

func (m *SourceEntity) XXX_Size() int

func (*SourceEntity) XXX_Unmarshal added in v0.5.0

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

type SourceHandler added in v0.5.0

type SourceHandler interface {
	// 导入YAML
	ImportYaml(context.Context, *ImportYamlRequest, *BlankResponse) error
	// 列举
	List(context.Context, *ListRequest, *SourceListResponse) error
	// 删除
	Delete(context.Context, *DeleteRequest, *BlankResponse) error
}

type SourceListResponse added in v0.5.0

type SourceListResponse struct {
	Status               *Status         `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Total                int64           `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	Entity               []*SourceEntity `protobuf:"bytes,3,rep,name=entity,proto3" json:"entity,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*SourceListResponse) Descriptor added in v0.5.0

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

func (*SourceListResponse) GetEntity added in v0.5.0

func (m *SourceListResponse) GetEntity() []*SourceEntity

func (*SourceListResponse) GetStatus added in v0.5.0

func (m *SourceListResponse) GetStatus() *Status

func (*SourceListResponse) GetTotal added in v0.5.0

func (m *SourceListResponse) GetTotal() int64

func (*SourceListResponse) ProtoMessage added in v0.5.0

func (*SourceListResponse) ProtoMessage()

func (*SourceListResponse) Reset added in v0.5.0

func (m *SourceListResponse) Reset()

func (*SourceListResponse) String added in v0.5.0

func (m *SourceListResponse) String() string

func (*SourceListResponse) XXX_DiscardUnknown added in v0.5.0

func (m *SourceListResponse) XXX_DiscardUnknown()

func (*SourceListResponse) XXX_Marshal added in v0.5.0

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

func (*SourceListResponse) XXX_Merge added in v0.5.0

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

func (*SourceListResponse) XXX_Size added in v0.5.0

func (m *SourceListResponse) XXX_Size() int

func (*SourceListResponse) XXX_Unmarshal added in v0.5.0

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

type SourceService added in v0.5.0

type SourceService interface {
	// 导入YAML
	ImportYaml(ctx context.Context, in *ImportYamlRequest, opts ...client.CallOption) (*BlankResponse, error)
	// 列举
	List(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*SourceListResponse, error)
	// 删除
	Delete(ctx context.Context, in *DeleteRequest, opts ...client.CallOption) (*BlankResponse, error)
}

func NewSourceService added in v0.5.0

func NewSourceService(name string, c client.Client) SourceService

type Status

type Status struct {
	Code                 int32    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message              string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

状态

func (*Status) Descriptor

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

func (*Status) GetCode

func (m *Status) GetCode() int32

func (*Status) GetMessage

func (m *Status) GetMessage() string

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) Reset

func (m *Status) Reset()

func (*Status) String

func (m *Status) String() string

func (*Status) XXX_DiscardUnknown

func (m *Status) XXX_DiscardUnknown()

func (*Status) XXX_Marshal

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

func (*Status) XXX_Merge

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

func (*Status) XXX_Size

func (m *Status) XXX_Size() int

func (*Status) XXX_Unmarshal

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

type VocabularyEntity added in v0.3.0

type VocabularyEntity struct {
	Uuid                 string   `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Label                []string `protobuf:"bytes,3,rep,name=label,proto3" json:"label,omitempty"`
	Value                []string `protobuf:"bytes,4,rep,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

词汇实体

func (*VocabularyEntity) Descriptor added in v0.3.0

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

func (*VocabularyEntity) GetLabel added in v0.4.0

func (m *VocabularyEntity) GetLabel() []string

func (*VocabularyEntity) GetName added in v0.3.0

func (m *VocabularyEntity) GetName() string

func (*VocabularyEntity) GetUuid added in v0.7.0

func (m *VocabularyEntity) GetUuid() string

func (*VocabularyEntity) GetValue added in v0.11.0

func (m *VocabularyEntity) GetValue() []string

func (*VocabularyEntity) ProtoMessage added in v0.3.0

func (*VocabularyEntity) ProtoMessage()

func (*VocabularyEntity) Reset added in v0.3.0

func (m *VocabularyEntity) Reset()

func (*VocabularyEntity) String added in v0.3.0

func (m *VocabularyEntity) String() string

func (*VocabularyEntity) XXX_DiscardUnknown added in v0.3.0

func (m *VocabularyEntity) XXX_DiscardUnknown()

func (*VocabularyEntity) XXX_Marshal added in v0.3.0

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

func (*VocabularyEntity) XXX_Merge added in v0.3.0

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

func (*VocabularyEntity) XXX_Size added in v0.3.0

func (m *VocabularyEntity) XXX_Size() int

func (*VocabularyEntity) XXX_Unmarshal added in v0.3.0

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

type VocabularyFindResponse added in v0.3.0

type VocabularyFindResponse struct {
	Status               *Status             `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Entity               []*VocabularyEntity `protobuf:"bytes,2,rep,name=entity,proto3" json:"entity,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*VocabularyFindResponse) Descriptor added in v0.3.0

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

func (*VocabularyFindResponse) GetEntity added in v0.3.0

func (m *VocabularyFindResponse) GetEntity() []*VocabularyEntity

func (*VocabularyFindResponse) GetStatus added in v0.3.0

func (m *VocabularyFindResponse) GetStatus() *Status

func (*VocabularyFindResponse) ProtoMessage added in v0.3.0

func (*VocabularyFindResponse) ProtoMessage()

func (*VocabularyFindResponse) Reset added in v0.3.0

func (m *VocabularyFindResponse) Reset()

func (*VocabularyFindResponse) String added in v0.3.0

func (m *VocabularyFindResponse) String() string

func (*VocabularyFindResponse) XXX_DiscardUnknown added in v0.3.0

func (m *VocabularyFindResponse) XXX_DiscardUnknown()

func (*VocabularyFindResponse) XXX_Marshal added in v0.3.0

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

func (*VocabularyFindResponse) XXX_Merge added in v0.3.0

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

func (*VocabularyFindResponse) XXX_Size added in v0.3.0

func (m *VocabularyFindResponse) XXX_Size() int

func (*VocabularyFindResponse) XXX_Unmarshal added in v0.3.0

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

type VocabularyHandler added in v0.2.0

type VocabularyHandler interface {
	// 导入YAML
	ImportYaml(context.Context, *ImportYamlRequest, *BlankResponse) error
	// 列举
	List(context.Context, *ListRequest, *VocabularyListResponse) error
	// 查找
	Find(context.Context, *FindRequest, *VocabularyFindResponse) error
	// 删除
	Delete(context.Context, *DeleteRequest, *BlankResponse) error
}

type VocabularyListResponse added in v0.3.0

type VocabularyListResponse struct {
	Status               *Status             `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Total                int64               `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	Entity               []*VocabularyEntity `protobuf:"bytes,3,rep,name=entity,proto3" json:"entity,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*VocabularyListResponse) Descriptor added in v0.3.0

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

func (*VocabularyListResponse) GetEntity added in v0.3.0

func (m *VocabularyListResponse) GetEntity() []*VocabularyEntity

func (*VocabularyListResponse) GetStatus added in v0.3.0

func (m *VocabularyListResponse) GetStatus() *Status

func (*VocabularyListResponse) GetTotal added in v0.3.0

func (m *VocabularyListResponse) GetTotal() int64

func (*VocabularyListResponse) ProtoMessage added in v0.3.0

func (*VocabularyListResponse) ProtoMessage()

func (*VocabularyListResponse) Reset added in v0.3.0

func (m *VocabularyListResponse) Reset()

func (*VocabularyListResponse) String added in v0.3.0

func (m *VocabularyListResponse) String() string

func (*VocabularyListResponse) XXX_DiscardUnknown added in v0.3.0

func (m *VocabularyListResponse) XXX_DiscardUnknown()

func (*VocabularyListResponse) XXX_Marshal added in v0.3.0

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

func (*VocabularyListResponse) XXX_Merge added in v0.3.0

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

func (*VocabularyListResponse) XXX_Size added in v0.3.0

func (m *VocabularyListResponse) XXX_Size() int

func (*VocabularyListResponse) XXX_Unmarshal added in v0.3.0

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

type VocabularyService added in v0.2.0

type VocabularyService interface {
	// 导入YAML
	ImportYaml(ctx context.Context, in *ImportYamlRequest, opts ...client.CallOption) (*BlankResponse, error)
	// 列举
	List(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*VocabularyListResponse, error)
	// 查找
	Find(ctx context.Context, in *FindRequest, opts ...client.CallOption) (*VocabularyFindResponse, error)
	// 删除
	Delete(ctx context.Context, in *DeleteRequest, opts ...client.CallOption) (*BlankResponse, error)
}

func NewVocabularyService added in v0.2.0

func NewVocabularyService(name string, c client.Client) VocabularyService

Jump to

Keyboard shortcuts

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