Documentation ¶
Index ¶
- Variables
- func ExpressionServiceClientType() reflect.Type
- func ExpressionServiceHandlerType() reflect.Type
- func ExpressionServiceServerType() reflect.Type
- func RegisterExpressionServiceHandler(r http.Router, srv ExpressionServiceHandler, opts ...http.HandleOption)
- func RegisterExpressionServiceImp(regester transport.Register, srv ExpressionServiceServer, ...)
- func RegisterExpressionServiceServer(s grpc1.ServiceRegistrar, srv ExpressionServiceServer, ...)
- func ServiceNames(svr ...string) []string
- func Types() []reflect.Type
- type Expression
- func (*Expression) Descriptor() ([]byte, []int)deprecated
- func (x *Expression) GetAttributes() map[string]*structpb.Value
- func (x *Expression) GetEnable() bool
- func (x *Expression) GetExpression() map[string]*structpb.Value
- func (x *Expression) GetName() string
- func (x *Expression) GetVersion() string
- func (m *Expression) MarshalJSON() ([]byte, error)
- func (*Expression) ProtoMessage()
- func (x *Expression) ProtoReflect() protoreflect.Message
- func (x *Expression) Reset()
- func (x *Expression) String() string
- func (m *Expression) UnmarshalJSON(b []byte) error
- func (m *Expression) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *Expression) Validate() error
- type ExpressionServiceClient
- type ExpressionServiceHandler
- type ExpressionServiceServer
- type GetExpressionRequest
- func (*GetExpressionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetExpressionRequest) GetType() string
- func (m *GetExpressionRequest) MarshalJSON() ([]byte, error)
- func (*GetExpressionRequest) ProtoMessage()
- func (x *GetExpressionRequest) ProtoReflect() protoreflect.Message
- func (x *GetExpressionRequest) Reset()
- func (x *GetExpressionRequest) String() string
- func (m *GetExpressionRequest) UnmarshalJSON(b []byte) error
- func (m *GetExpressionRequest) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *GetExpressionRequest) Validate() error
- type GetExpressionResponse
- func (*GetExpressionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetExpressionResponse) GetData() []*Expression
- func (m *GetExpressionResponse) MarshalJSON() ([]byte, error)
- func (*GetExpressionResponse) ProtoMessage()
- func (x *GetExpressionResponse) ProtoReflect() protoreflect.Message
- func (x *GetExpressionResponse) Reset()
- func (x *GetExpressionResponse) String() string
- func (m *GetExpressionResponse) UnmarshalJSON(b []byte) error
- func (m *GetExpressionResponse) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *GetExpressionResponse) Validate() error
- type UnimplementedExpressionServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_expression_proto protoreflect.FileDescriptor
Functions ¶
func ExpressionServiceClientType ¶
ExpressionServiceClientType .
func ExpressionServiceHandlerType ¶
ExpressionServiceHandlerType .
func ExpressionServiceServerType ¶
ExpressionServiceServerType .
func RegisterExpressionServiceHandler ¶
func RegisterExpressionServiceHandler(r http.Router, srv ExpressionServiceHandler, opts ...http.HandleOption)
RegisterExpressionServiceHandler register ExpressionServiceHandler to http.Router.
func RegisterExpressionServiceImp ¶
func RegisterExpressionServiceImp(regester transport.Register, srv ExpressionServiceServer, opts ...transport.ServiceOption)
RegisterExpressionServiceImp expression.proto
func RegisterExpressionServiceServer ¶
func RegisterExpressionServiceServer(s grpc1.ServiceRegistrar, srv ExpressionServiceServer, opts ...grpc1.HandleOption)
Types ¶
type Expression ¶
type Expression struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Attributes map[string]*structpb.Value `` /* 161-byte string literal not displayed */ Expression map[string]*structpb.Value `` /* 161-byte string literal not displayed */ Enable bool `protobuf:"varint,4,opt,name=enable,proto3" json:"enable,omitempty"` Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*Expression) Descriptor
deprecated
func (*Expression) Descriptor() ([]byte, []int)
Deprecated: Use Expression.ProtoReflect.Descriptor instead.
func (*Expression) GetAttributes ¶
func (x *Expression) GetAttributes() map[string]*structpb.Value
func (*Expression) GetEnable ¶
func (x *Expression) GetEnable() bool
func (*Expression) GetExpression ¶
func (x *Expression) GetExpression() map[string]*structpb.Value
func (*Expression) GetName ¶
func (x *Expression) GetName() string
func (*Expression) GetVersion ¶
func (x *Expression) GetVersion() string
func (*Expression) MarshalJSON ¶
func (m *Expression) MarshalJSON() ([]byte, error)
Expression implement json.Marshaler.
func (*Expression) ProtoMessage ¶
func (*Expression) ProtoMessage()
func (*Expression) ProtoReflect ¶
func (x *Expression) ProtoReflect() protoreflect.Message
func (*Expression) Reset ¶
func (x *Expression) Reset()
func (*Expression) String ¶
func (x *Expression) String() string
func (*Expression) UnmarshalJSON ¶
func (m *Expression) UnmarshalJSON(b []byte) error
Expression implement json.Marshaler.
func (*Expression) UnmarshalURLValues ¶
func (m *Expression) UnmarshalURLValues(prefix string, values url.Values) error
Expression implement urlenc.URLValuesUnmarshaler.
func (*Expression) Validate ¶
func (this *Expression) Validate() error
type ExpressionServiceClient ¶
type ExpressionServiceClient interface {
GetExpression(ctx context.Context, in *GetExpressionRequest, opts ...grpc.CallOption) (*GetExpressionResponse, error)
}
ExpressionServiceClient is the client API for ExpressionService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewExpressionServiceClient ¶
func NewExpressionServiceClient(cc grpc1.ClientConnInterface) ExpressionServiceClient
type ExpressionServiceHandler ¶
type ExpressionServiceHandler interface { // GET /api/msp/expression/{type} GetExpression(context.Context, *GetExpressionRequest) (*GetExpressionResponse, error) }
ExpressionServiceHandler is the server API for ExpressionService service.
type ExpressionServiceServer ¶
type ExpressionServiceServer interface {
GetExpression(context.Context, *GetExpressionRequest) (*GetExpressionResponse, error)
}
ExpressionServiceServer is the server API for ExpressionService service. All implementations should embed UnimplementedExpressionServiceServer for forward compatibility
type GetExpressionRequest ¶
type GetExpressionRequest struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*GetExpressionRequest) Descriptor
deprecated
func (*GetExpressionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetExpressionRequest.ProtoReflect.Descriptor instead.
func (*GetExpressionRequest) GetType ¶
func (x *GetExpressionRequest) GetType() string
func (*GetExpressionRequest) MarshalJSON ¶
func (m *GetExpressionRequest) MarshalJSON() ([]byte, error)
GetExpressionRequest implement json.Marshaler.
func (*GetExpressionRequest) ProtoMessage ¶
func (*GetExpressionRequest) ProtoMessage()
func (*GetExpressionRequest) ProtoReflect ¶
func (x *GetExpressionRequest) ProtoReflect() protoreflect.Message
func (*GetExpressionRequest) Reset ¶
func (x *GetExpressionRequest) Reset()
func (*GetExpressionRequest) String ¶
func (x *GetExpressionRequest) String() string
func (*GetExpressionRequest) UnmarshalJSON ¶
func (m *GetExpressionRequest) UnmarshalJSON(b []byte) error
GetExpressionRequest implement json.Marshaler.
func (*GetExpressionRequest) UnmarshalURLValues ¶
func (m *GetExpressionRequest) UnmarshalURLValues(prefix string, values url.Values) error
GetExpressionRequest implement urlenc.URLValuesUnmarshaler.
func (*GetExpressionRequest) Validate ¶
func (this *GetExpressionRequest) Validate() error
type GetExpressionResponse ¶
type GetExpressionResponse struct { Data []*Expression `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetExpressionResponse) Descriptor
deprecated
func (*GetExpressionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetExpressionResponse.ProtoReflect.Descriptor instead.
func (*GetExpressionResponse) GetData ¶
func (x *GetExpressionResponse) GetData() []*Expression
func (*GetExpressionResponse) MarshalJSON ¶
func (m *GetExpressionResponse) MarshalJSON() ([]byte, error)
GetExpressionResponse implement json.Marshaler.
func (*GetExpressionResponse) ProtoMessage ¶
func (*GetExpressionResponse) ProtoMessage()
func (*GetExpressionResponse) ProtoReflect ¶
func (x *GetExpressionResponse) ProtoReflect() protoreflect.Message
func (*GetExpressionResponse) Reset ¶
func (x *GetExpressionResponse) Reset()
func (*GetExpressionResponse) String ¶
func (x *GetExpressionResponse) String() string
func (*GetExpressionResponse) UnmarshalJSON ¶
func (m *GetExpressionResponse) UnmarshalJSON(b []byte) error
GetExpressionResponse implement json.Marshaler.
func (*GetExpressionResponse) UnmarshalURLValues ¶
func (m *GetExpressionResponse) UnmarshalURLValues(prefix string, values url.Values) error
GetExpressionResponse implement urlenc.URLValuesUnmarshaler.
func (*GetExpressionResponse) Validate ¶
func (this *GetExpressionResponse) Validate() error
type UnimplementedExpressionServiceServer ¶
type UnimplementedExpressionServiceServer struct { }
UnimplementedExpressionServiceServer should be embedded to have forward compatible implementations.
func (*UnimplementedExpressionServiceServer) GetExpression ¶
func (*UnimplementedExpressionServiceServer) GetExpression(context.Context, *GetExpressionRequest) (*GetExpressionResponse, error)