pb

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_expression_proto protoreflect.FileDescriptor

Functions

func ExpressionServiceClientType

func ExpressionServiceClientType() reflect.Type

ExpressionServiceClientType .

func ExpressionServiceHandlerType

func ExpressionServiceHandlerType() reflect.Type

ExpressionServiceHandlerType .

func ExpressionServiceServerType

func ExpressionServiceServerType() reflect.Type

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)

func ServiceNames

func ServiceNames(svr ...string) []string

ServiceNames return all service names

func Types

func Types() []reflect.Type

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.

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

Jump to

Keyboard shortcuts

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