pastebin_record

package
v0.0.0-...-75d57e1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IPAddressVersion_name = map[int32]string{
		0: "V4",
		1: "V6",
	}
	IPAddressVersion_value = map[string]int32{
		"V4": 0,
		"V6": 1,
	}
)

Enum value maps for IPAddressVersion.

View Source
var File_pastebin_record_pastebin_record_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type IPAddress

type IPAddress struct {
	Ip      []byte           `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	Version IPAddressVersion `protobuf:"varint,2,opt,name=version,proto3,enum=pastebin.IPAddressVersion" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*IPAddress) Descriptor deprecated

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

Deprecated: Use IPAddress.ProtoReflect.Descriptor instead.

func (*IPAddress) GetIp

func (x *IPAddress) GetIp() []byte

func (*IPAddress) GetVersion

func (x *IPAddress) GetVersion() IPAddressVersion

func (*IPAddress) ProtoMessage

func (*IPAddress) ProtoMessage()

func (*IPAddress) ProtoReflect

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

func (*IPAddress) Reset

func (x *IPAddress) Reset()

func (*IPAddress) String

func (x *IPAddress) String() string

type IPAddressVersion

type IPAddressVersion int32
const (
	IPAddressVersion_V4 IPAddressVersion = 0
	IPAddressVersion_V6 IPAddressVersion = 1
)

func (IPAddressVersion) Descriptor

func (IPAddressVersion) Enum

func (IPAddressVersion) EnumDescriptor deprecated

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

Deprecated: Use IPAddressVersion.Descriptor instead.

func (IPAddressVersion) Number

func (IPAddressVersion) String

func (x IPAddressVersion) String() string

func (IPAddressVersion) Type

type PastebinRecord

type PastebinRecord struct {
	Body               string                 `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`                                  // literal text; body of utf-8 text file
	Creator            *IPAddress             `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`                            // IP address (either v4 or v6) of client that created this paste
	TimeCreated        *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=time_created,json=timeCreated,proto3" json:"time_created,omitempty"` // when this record was inserted into database
	Expiration         *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expiration,proto3,oneof" json:"expiration,omitempty"`                // when to purge
	Filename           *string                `protobuf:"bytes,5,opt,name=filename,proto3,oneof" json:"filename,omitempty"`
	MimeType           *string                `protobuf:"bytes,6,opt,name=mime_type,json=mimeType,proto3,oneof" json:"mime_type,omitempty"`                               // mime type string of the "file"
	SyntaxHighlighting *string                `protobuf:"bytes,7,opt,name=syntax_highlighting,json=syntaxHighlighting,proto3,oneof" json:"syntax_highlighting,omitempty"` // language for syntax highlighting
	// contains filtered or unexported fields
}

func (*PastebinRecord) Descriptor deprecated

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

Deprecated: Use PastebinRecord.ProtoReflect.Descriptor instead.

func (*PastebinRecord) GetBody

func (x *PastebinRecord) GetBody() string

func (*PastebinRecord) GetCreator

func (x *PastebinRecord) GetCreator() *IPAddress

func (*PastebinRecord) GetExpiration

func (x *PastebinRecord) GetExpiration() *timestamppb.Timestamp

func (*PastebinRecord) GetFilename

func (x *PastebinRecord) GetFilename() string

func (*PastebinRecord) GetMimeType

func (x *PastebinRecord) GetMimeType() string

func (*PastebinRecord) GetSyntaxHighlighting

func (x *PastebinRecord) GetSyntaxHighlighting() string

func (*PastebinRecord) GetTimeCreated

func (x *PastebinRecord) GetTimeCreated() *timestamppb.Timestamp

func (*PastebinRecord) ProtoMessage

func (*PastebinRecord) ProtoMessage()

func (*PastebinRecord) ProtoReflect

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

func (*PastebinRecord) Reset

func (x *PastebinRecord) Reset()

func (*PastebinRecord) String

func (x *PastebinRecord) String() string

Jump to

Keyboard shortcuts

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