proto

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_resource_proto protoreflect.FileDescriptor

Functions

func RegisterFilterServer

func RegisterFilterServer(s *grpc.Server, srv FilterServer)

Types

type Bundle

type Bundle struct {
	ResourceType string     `protobuf:"bytes,1,opt,name=resourceType,proto3" json:"resourceType,omitempty"`
	Type         string     `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Total        int32      `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
	ProductKey   string     `protobuf:"bytes,4,opt,name=productKey,proto3" json:"productKey,omitempty"`
	Entry        []*Element `protobuf:"bytes,5,rep,name=entry,proto3" json:"entry,omitempty"`
	// contains filtered or unexported fields
}

func (*Bundle) Descriptor deprecated

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

Deprecated: Use Bundle.ProtoReflect.Descriptor instead.

func (*Bundle) GetEntry

func (x *Bundle) GetEntry() []*Element

func (*Bundle) GetProductKey

func (x *Bundle) GetProductKey() string

func (*Bundle) GetResourceType

func (x *Bundle) GetResourceType() string

func (*Bundle) GetTotal

func (x *Bundle) GetTotal() int32

func (*Bundle) GetType

func (x *Bundle) GetType() string

func (*Bundle) ProtoMessage

func (*Bundle) ProtoMessage()

func (*Bundle) ProtoReflect

func (x *Bundle) ProtoReflect() protoreflect.Message

func (*Bundle) Reset

func (x *Bundle) Reset()

func (*Bundle) String

func (x *Bundle) String() string

type Element

type Element struct {
	Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

func (*Element) Descriptor deprecated

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

Deprecated: Use Element.ProtoReflect.Descriptor instead.

func (*Element) GetResource

func (x *Element) GetResource() *Resource

func (*Element) ProtoMessage

func (*Element) ProtoMessage()

func (*Element) ProtoReflect

func (x *Element) ProtoReflect() protoreflect.Message

func (*Element) Reset

func (x *Element) Reset()

func (*Element) String

func (x *Element) String() string

type FilterClient

type FilterClient interface {
	Filter(ctx context.Context, in *FilterRequest, opts ...grpc.CallOption) (*FilterResponse, error)
}

FilterClient is the client API for Filter service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewFilterClient

func NewFilterClient(cc grpc.ClientConnInterface) FilterClient

type FilterRequest

type FilterRequest struct {
	Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

func (*FilterRequest) Descriptor deprecated

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

Deprecated: Use FilterRequest.ProtoReflect.Descriptor instead.

func (*FilterRequest) GetResource

func (x *FilterRequest) GetResource() *Resource

func (*FilterRequest) ProtoMessage

func (*FilterRequest) ProtoMessage()

func (*FilterRequest) ProtoReflect

func (x *FilterRequest) ProtoReflect() protoreflect.Message

func (*FilterRequest) Reset

func (x *FilterRequest) Reset()

func (*FilterRequest) String

func (x *FilterRequest) String() string

type FilterResponse

type FilterResponse struct {
	Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	Drop     bool      `protobuf:"varint,2,opt,name=drop,proto3" json:"drop,omitempty"`
	Modified bool      `protobuf:"varint,3,opt,name=modified,proto3" json:"modified,omitempty"`
	Error    string    `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*FilterResponse) Descriptor deprecated

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

Deprecated: Use FilterResponse.ProtoReflect.Descriptor instead.

func (*FilterResponse) GetDrop

func (x *FilterResponse) GetDrop() bool

func (*FilterResponse) GetError

func (x *FilterResponse) GetError() string

func (*FilterResponse) GetModified

func (x *FilterResponse) GetModified() bool

func (*FilterResponse) GetResource

func (x *FilterResponse) GetResource() *Resource

func (*FilterResponse) ProtoMessage

func (*FilterResponse) ProtoMessage()

func (*FilterResponse) ProtoReflect

func (x *FilterResponse) ProtoReflect() protoreflect.Message

func (*FilterResponse) Reset

func (x *FilterResponse) Reset()

func (*FilterResponse) String

func (x *FilterResponse) String() string

type FilterServer

type FilterServer interface {
	Filter(context.Context, *FilterRequest) (*FilterResponse, error)
}

FilterServer is the server API for Filter service.

type LogData

type LogData struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*LogData) Descriptor deprecated

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

Deprecated: Use LogData.ProtoReflect.Descriptor instead.

func (*LogData) GetMessage

func (x *LogData) GetMessage() string

func (*LogData) ProtoMessage

func (*LogData) ProtoMessage()

func (*LogData) ProtoReflect

func (x *LogData) ProtoReflect() protoreflect.Message

func (*LogData) Reset

func (x *LogData) Reset()

func (*LogData) String

func (x *LogData) String() string

type Resource

type Resource struct {
	ResourceType        string          `protobuf:"bytes,1,opt,name=resourceType,proto3" json:"resourceType,omitempty"`
	Id                  string          `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	ApplicationName     string          `protobuf:"bytes,3,opt,name=applicationName,proto3" json:"applicationName,omitempty"`
	Category            string          `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty"`
	Component           string          `protobuf:"bytes,5,opt,name=component,proto3" json:"component,omitempty"`
	TransactionId       string          `protobuf:"bytes,6,opt,name=transactionId,proto3" json:"transactionId,omitempty"`
	ServiceName         string          `protobuf:"bytes,7,opt,name=serviceName,proto3" json:"serviceName,omitempty"`
	ApplicationInstance string          `protobuf:"bytes,8,opt,name=applicationInstance,proto3" json:"applicationInstance,omitempty"`
	ApplicationVersion  string          `protobuf:"bytes,9,opt,name=applicationVersion,proto3" json:"applicationVersion,omitempty"`
	OriginatingUser     string          `protobuf:"bytes,10,opt,name=originatingUser,proto3" json:"originatingUser,omitempty"`
	ServerName          string          `protobuf:"bytes,11,opt,name=serverName,proto3" json:"serverName,omitempty"`
	LogTime             string          `protobuf:"bytes,12,opt,name=logTime,proto3" json:"logTime,omitempty"`
	Severity            string          `protobuf:"bytes,13,opt,name=severity,proto3" json:"severity,omitempty"`
	EventId             string          `protobuf:"bytes,14,opt,name=eventId,proto3" json:"eventId,omitempty"`
	LogData             *LogData        `protobuf:"bytes,15,opt,name=logData,proto3" json:"logData,omitempty"`
	Custom              *_struct.Struct `protobuf:"bytes,16,opt,name=custom,proto3" json:"custom,omitempty"`
	// contains filtered or unexported fields
}

func FromResource

func FromResource(src logging.Resource) (*Resource, error)

func (*Resource) Descriptor deprecated

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetApplicationInstance

func (x *Resource) GetApplicationInstance() string

func (*Resource) GetApplicationName

func (x *Resource) GetApplicationName() string

func (*Resource) GetApplicationVersion

func (x *Resource) GetApplicationVersion() string

func (*Resource) GetCategory

func (x *Resource) GetCategory() string

func (*Resource) GetComponent

func (x *Resource) GetComponent() string

func (*Resource) GetCustom

func (x *Resource) GetCustom() *_struct.Struct

func (*Resource) GetEventId

func (x *Resource) GetEventId() string

func (*Resource) GetId

func (x *Resource) GetId() string

func (*Resource) GetLogData

func (x *Resource) GetLogData() *LogData

func (*Resource) GetLogTime

func (x *Resource) GetLogTime() string

func (*Resource) GetOriginatingUser

func (x *Resource) GetOriginatingUser() string

func (*Resource) GetResourceType

func (x *Resource) GetResourceType() string

func (*Resource) GetServerName

func (x *Resource) GetServerName() string

func (*Resource) GetServiceName

func (x *Resource) GetServiceName() string

func (*Resource) GetSeverity

func (x *Resource) GetSeverity() string

func (*Resource) GetTransactionId

func (x *Resource) GetTransactionId() string

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

func (x *Resource) ProtoReflect() protoreflect.Message

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

func (*Resource) ToResource

func (x *Resource) ToResource() (*logging.Resource, error)

type UnimplementedFilterServer

type UnimplementedFilterServer struct {
}

UnimplementedFilterServer can be embedded to have forward compatible implementations.

func (*UnimplementedFilterServer) Filter

Jump to

Keyboard shortcuts

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