gas

package
v0.0.0-...-0564b78 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DiffType_name = map[int32]string{
		0: "DIFF_TYPE_UNKNOWN",
		1: "CREATE",
		2: "UPDATE",
		3: "DELETE",
	}
	DiffType_value = map[string]int32{
		"DIFF_TYPE_UNKNOWN": 0,
		"CREATE":            1,
		"UPDATE":            2,
		"DELETE":            3,
	}
)

Enum value maps for DiffType.

View Source
var (
	ContentType_name = map[int32]string{
		0: "CONTENT_TYPE_UNKNOWN",
		1: "TEXT",
		2: "HTML",
		3: "ATTRIBUTE",
		4: "EMPTY_FROM_REMOVAL",
	}
	ContentType_value = map[string]int32{
		"CONTENT_TYPE_UNKNOWN": 0,
		"TEXT":                 1,
		"HTML":                 2,
		"ATTRIBUTE":            3,
		"EMPTY_FROM_REMOVAL":   4,
	}
)

Enum value maps for ContentType.

View Source
var (
	FromClient_Type_name = map[int32]string{
		0: "TYPE_UNKNOWN",
		1: "LOG",
		2: "EVENT",
	}
	FromClient_Type_value = map[string]int32{
		"TYPE_UNKNOWN": 0,
		"LOG":          1,
		"EVENT":        2,
	}
)

Enum value maps for FromClient_Type.

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var File_protocol_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ContentType

type ContentType int32
const (
	ContentType_CONTENT_TYPE_UNKNOWN ContentType = 0
	ContentType_TEXT                 ContentType = 1
	ContentType_HTML                 ContentType = 2
	ContentType_ATTRIBUTE            ContentType = 3
	ContentType_EMPTY_FROM_REMOVAL   ContentType = 4
)

func (ContentType) Descriptor

func (ContentType) Enum

func (x ContentType) Enum() *ContentType

func (ContentType) EnumDescriptor deprecated

func (ContentType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ContentType.Descriptor instead.

func (ContentType) Number

func (x ContentType) Number() protoreflect.EnumNumber

func (ContentType) String

func (x ContentType) String() string

func (ContentType) Type

type Diff

type Diff struct {

	// option (vtproto.mempool) = true;
	//
	// Types that are assignable to Root:
	//
	//	*Diff_Document
	//	*Diff_ElementSelector
	Root isDiff_Root `protobuf_oneof:"root"`
	// Position of each child
	PathIndicies []uint32    `protobuf:"varint,3,rep,packed,name=path_indicies,json=pathIndicies,proto3" json:"path_indicies,omitempty"`
	DiffType     DiffType    `protobuf:"varint,4,opt,name=diff_type,json=diffType,proto3,enum=DiffType" json:"diff_type,omitempty"`
	ContentType  ContentType `protobuf:"varint,5,opt,name=content_type,json=contentType,proto3,enum=ContentType" json:"content_type,omitempty"`
	Contents     string      `protobuf:"bytes,6,opt,name=contents,proto3" json:"contents,omitempty"`
	// contains filtered or unexported fields
}

func (*Diff) Descriptor deprecated

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

Deprecated: Use Diff.ProtoReflect.Descriptor instead.

func (*Diff) GetContentType

func (x *Diff) GetContentType() ContentType

func (*Diff) GetContents

func (x *Diff) GetContents() string

func (*Diff) GetDiffType

func (x *Diff) GetDiffType() DiffType

func (*Diff) GetDocument

func (x *Diff) GetDocument() bool

func (*Diff) GetElementSelector

func (x *Diff) GetElementSelector() string

func (*Diff) GetPathIndicies

func (x *Diff) GetPathIndicies() []uint32

func (*Diff) GetRoot

func (m *Diff) GetRoot() isDiff_Root

func (*Diff) MarshalToSizedBufferVT

func (m *Diff) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Diff) MarshalToVT

func (m *Diff) MarshalToVT(dAtA []byte) (int, error)

func (*Diff) MarshalVT

func (m *Diff) MarshalVT() (dAtA []byte, err error)

func (*Diff) ProtoMessage

func (*Diff) ProtoMessage()

func (*Diff) ProtoReflect

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

func (*Diff) Reset

func (x *Diff) Reset()

func (*Diff) SizeVT

func (m *Diff) SizeVT() (n int)

func (*Diff) String

func (x *Diff) String() string

func (*Diff) UnmarshalVT

func (m *Diff) UnmarshalVT(dAtA []byte) error

type DiffType

type DiffType int32
const (
	DiffType_DIFF_TYPE_UNKNOWN DiffType = 0
	DiffType_CREATE            DiffType = 1
	DiffType_UPDATE            DiffType = 2
	DiffType_DELETE            DiffType = 3
)

func (DiffType) Descriptor

func (DiffType) Descriptor() protoreflect.EnumDescriptor

func (DiffType) Enum

func (x DiffType) Enum() *DiffType

func (DiffType) EnumDescriptor deprecated

func (DiffType) EnumDescriptor() ([]byte, []int)

Deprecated: Use DiffType.Descriptor instead.

func (DiffType) Number

func (x DiffType) Number() protoreflect.EnumNumber

func (DiffType) String

func (x DiffType) String() string

func (DiffType) Type

type Diff_Document

type Diff_Document struct {
	Document bool `protobuf:"varint,1,opt,name=document,proto3,oneof"`
}

func (*Diff_Document) MarshalToSizedBufferVT

func (m *Diff_Document) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Diff_Document) MarshalToVT

func (m *Diff_Document) MarshalToVT(dAtA []byte) (int, error)

func (*Diff_Document) SizeVT

func (m *Diff_Document) SizeVT() (n int)

type Diff_ElementSelector

type Diff_ElementSelector struct {
	ElementSelector string `protobuf:"bytes,2,opt,name=element_selector,json=elementSelector,proto3,oneof"`
}

func (*Diff_ElementSelector) MarshalToSizedBufferVT

func (m *Diff_ElementSelector) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Diff_ElementSelector) MarshalToVT

func (m *Diff_ElementSelector) MarshalToVT(dAtA []byte) (int, error)

func (*Diff_ElementSelector) SizeVT

func (m *Diff_ElementSelector) SizeVT() (n int)

type Diffs

type Diffs struct {
	Values []*Diff `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*Diffs) Descriptor deprecated

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

Deprecated: Use Diffs.ProtoReflect.Descriptor instead.

func (*Diffs) GetValues

func (x *Diffs) GetValues() []*Diff

func (*Diffs) MarshalToSizedBufferVT

func (m *Diffs) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Diffs) MarshalToVT

func (m *Diffs) MarshalToVT(dAtA []byte) (int, error)

func (*Diffs) MarshalVT

func (m *Diffs) MarshalVT() (dAtA []byte, err error)

func (*Diffs) ProtoMessage

func (*Diffs) ProtoMessage()

func (*Diffs) ProtoReflect

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

func (*Diffs) Reset

func (x *Diffs) Reset()

func (*Diffs) SizeVT

func (m *Diffs) SizeVT() (n int)

func (*Diffs) String

func (x *Diffs) String() string

func (*Diffs) UnmarshalVT

func (m *Diffs) UnmarshalVT(dAtA []byte) error

type FromClient

type FromClient struct {
	Type       FromClient_Type   `protobuf:"varint,1,opt,name=type,proto3,enum=FromClient_Type" json:"type,omitempty"`
	Ids        []string          `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"`
	Selected   bool              `protobuf:"varint,3,opt,name=selected,proto3" json:"selected,omitempty"`
	ValueMulti []string          `protobuf:"bytes,4,rep,name=value_multi,json=valueMulti,proto3" json:"value_multi,omitempty"`
	Data       map[string]string `` /* 149-byte string literal not displayed */
	Extra      map[string]string `` /* 151-byte string literal not displayed */
	File       *FromClient_File  `protobuf:"bytes,7,opt,name=file,proto3" json:"file,omitempty"`
	// contains filtered or unexported fields
}

func (*FromClient) Descriptor deprecated

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

Deprecated: Use FromClient.ProtoReflect.Descriptor instead.

func (*FromClient) GetData

func (x *FromClient) GetData() map[string]string

func (*FromClient) GetExtra

func (x *FromClient) GetExtra() map[string]string

func (*FromClient) GetFile

func (x *FromClient) GetFile() *FromClient_File

func (*FromClient) GetIds

func (x *FromClient) GetIds() []string

func (*FromClient) GetSelected

func (x *FromClient) GetSelected() bool

func (*FromClient) GetType

func (x *FromClient) GetType() FromClient_Type

func (*FromClient) GetValueMulti

func (x *FromClient) GetValueMulti() []string

func (*FromClient) MarshalToSizedBufferVT

func (m *FromClient) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*FromClient) MarshalToVT

func (m *FromClient) MarshalToVT(dAtA []byte) (int, error)

func (*FromClient) MarshalVT

func (m *FromClient) MarshalVT() (dAtA []byte, err error)

func (*FromClient) ProtoMessage

func (*FromClient) ProtoMessage()

func (*FromClient) ProtoReflect

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

func (*FromClient) Reset

func (x *FromClient) Reset()

func (*FromClient) SizeVT

func (m *FromClient) SizeVT() (n int)

func (*FromClient) String

func (x *FromClient) String() string

func (*FromClient) UnmarshalVT

func (m *FromClient) UnmarshalVT(dAtA []byte) error

type FromClient_File

type FromClient_File struct {
	Name            string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	SizeBytes       int64  `protobuf:"varint,2,opt,name=SizeBytes,proto3" json:"SizeBytes,omitempty"`
	MimeType        string `protobuf:"bytes,3,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
	Data            []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	TotalFilesIndex uint32 `protobuf:"varint,5,opt,name=total_files_index,json=totalFilesIndex,proto3" json:"total_files_index,omitempty"`
	TotalFileCount  uint32 `protobuf:"varint,6,opt,name=total_file_count,json=totalFileCount,proto3" json:"total_file_count,omitempty"`
	// contains filtered or unexported fields
}

func (*FromClient_File) Descriptor deprecated

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

Deprecated: Use FromClient_File.ProtoReflect.Descriptor instead.

func (*FromClient_File) GetData

func (x *FromClient_File) GetData() []byte

func (*FromClient_File) GetMimeType

func (x *FromClient_File) GetMimeType() string

func (*FromClient_File) GetName

func (x *FromClient_File) GetName() string

func (*FromClient_File) GetSizeBytes

func (x *FromClient_File) GetSizeBytes() int64

func (*FromClient_File) GetTotalFileCount

func (x *FromClient_File) GetTotalFileCount() uint32

func (*FromClient_File) GetTotalFilesIndex

func (x *FromClient_File) GetTotalFilesIndex() uint32

func (*FromClient_File) MarshalToSizedBufferVT

func (m *FromClient_File) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*FromClient_File) MarshalToVT

func (m *FromClient_File) MarshalToVT(dAtA []byte) (int, error)

func (*FromClient_File) MarshalVT

func (m *FromClient_File) MarshalVT() (dAtA []byte, err error)

func (*FromClient_File) ProtoMessage

func (*FromClient_File) ProtoMessage()

func (*FromClient_File) ProtoReflect

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

func (*FromClient_File) Reset

func (x *FromClient_File) Reset()

func (*FromClient_File) SizeVT

func (m *FromClient_File) SizeVT() (n int)

func (*FromClient_File) String

func (x *FromClient_File) String() string

func (*FromClient_File) UnmarshalVT

func (m *FromClient_File) UnmarshalVT(dAtA []byte) error

type FromClient_Type

type FromClient_Type int32
const (
	FromClient_TYPE_UNKNOWN FromClient_Type = 0
	FromClient_LOG          FromClient_Type = 1
	FromClient_EVENT        FromClient_Type = 2
)

func (FromClient_Type) Descriptor

func (FromClient_Type) Enum

func (x FromClient_Type) Enum() *FromClient_Type

func (FromClient_Type) EnumDescriptor deprecated

func (FromClient_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use FromClient_Type.Descriptor instead.

func (FromClient_Type) Number

func (FromClient_Type) String

func (x FromClient_Type) String() string

func (FromClient_Type) Type

type SessionInfo

type SessionInfo struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*SessionInfo) Descriptor deprecated

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

Deprecated: Use SessionInfo.ProtoReflect.Descriptor instead.

func (*SessionInfo) GetId

func (x *SessionInfo) GetId() uint64

func (*SessionInfo) MarshalToSizedBufferVT

func (m *SessionInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SessionInfo) MarshalToVT

func (m *SessionInfo) MarshalToVT(dAtA []byte) (int, error)

func (*SessionInfo) MarshalVT

func (m *SessionInfo) MarshalVT() (dAtA []byte, err error)

func (*SessionInfo) ProtoMessage

func (*SessionInfo) ProtoMessage()

func (*SessionInfo) ProtoReflect

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

func (*SessionInfo) Reset

func (x *SessionInfo) Reset()

func (*SessionInfo) SizeVT

func (m *SessionInfo) SizeVT() (n int)

func (*SessionInfo) String

func (x *SessionInfo) String() string

func (*SessionInfo) UnmarshalVT

func (m *SessionInfo) UnmarshalVT(dAtA []byte) error

type ToClient

type ToClient struct {

	// Types that are assignable to Message:
	//
	//	*ToClient_Diffs
	//	*ToClient_SessionInfo
	Message isToClient_Message `protobuf_oneof:"message"`
	// contains filtered or unexported fields
}

func (*ToClient) Descriptor deprecated

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

Deprecated: Use ToClient.ProtoReflect.Descriptor instead.

func (*ToClient) GetDiffs

func (x *ToClient) GetDiffs() *Diffs

func (*ToClient) GetMessage

func (m *ToClient) GetMessage() isToClient_Message

func (*ToClient) GetSessionInfo

func (x *ToClient) GetSessionInfo() *SessionInfo

func (*ToClient) MarshalToSizedBufferVT

func (m *ToClient) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ToClient) MarshalToVT

func (m *ToClient) MarshalToVT(dAtA []byte) (int, error)

func (*ToClient) MarshalVT

func (m *ToClient) MarshalVT() (dAtA []byte, err error)

func (*ToClient) ProtoMessage

func (*ToClient) ProtoMessage()

func (*ToClient) ProtoReflect

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

func (*ToClient) Reset

func (x *ToClient) Reset()

func (*ToClient) SizeVT

func (m *ToClient) SizeVT() (n int)

func (*ToClient) String

func (x *ToClient) String() string

func (*ToClient) UnmarshalVT

func (m *ToClient) UnmarshalVT(dAtA []byte) error

type ToClient_Diffs

type ToClient_Diffs struct {
	Diffs *Diffs `protobuf:"bytes,1,opt,name=diffs,proto3,oneof"`
}

func (*ToClient_Diffs) MarshalToSizedBufferVT

func (m *ToClient_Diffs) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ToClient_Diffs) MarshalToVT

func (m *ToClient_Diffs) MarshalToVT(dAtA []byte) (int, error)

func (*ToClient_Diffs) SizeVT

func (m *ToClient_Diffs) SizeVT() (n int)

type ToClient_SessionInfo

type ToClient_SessionInfo struct {
	SessionInfo *SessionInfo `protobuf:"bytes,2,opt,name=session_info,json=sessionInfo,proto3,oneof"`
}

func (*ToClient_SessionInfo) MarshalToSizedBufferVT

func (m *ToClient_SessionInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ToClient_SessionInfo) MarshalToVT

func (m *ToClient_SessionInfo) MarshalToVT(dAtA []byte) (int, error)

func (*ToClient_SessionInfo) SizeVT

func (m *ToClient_SessionInfo) SizeVT() (n int)

Jump to

Keyboard shortcuts

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