Documentation ¶
Overview ¶
Empty file containing instructions for “go generate” on how to rebuild the Go Protobuf generated code.
Index ¶
- Variables
- type Bool
- type RaftLog
- func (*RaftLog) Descriptor() ([]byte, []int)deprecated
- func (x *RaftLog) GetAppendedAt() *timestamppb.Timestamp
- func (x *RaftLog) GetData() []byte
- func (x *RaftLog) GetExtensions() []byte
- func (x *RaftLog) GetIndex() uint64
- func (x *RaftLog) GetTerm() uint64
- func (x *RaftLog) GetType() RaftLog_LogType
- func (*RaftLog) ProtoMessage()
- func (x *RaftLog) ProtoReflect() protoreflect.Message
- func (x *RaftLog) Reset()
- func (x *RaftLog) String() string
- type RaftLog_LogType
- func (RaftLog_LogType) Descriptor() protoreflect.EnumDescriptor
- func (x RaftLog_LogType) Enum() *RaftLog_LogType
- func (RaftLog_LogType) EnumDescriptor() ([]byte, []int)deprecated
- func (x RaftLog_LogType) Number() protoreflect.EnumNumber
- func (x RaftLog_LogType) String() string
- func (RaftLog_LogType) Type() protoreflect.EnumType
- type RobustId
- type RobustMessage
- func (*RobustMessage) Descriptor() ([]byte, []int)deprecated
- func (x *RobustMessage) GetClientMessageId() uint64
- func (x *RobustMessage) GetCurrentMaster() string
- func (x *RobustMessage) GetData() string
- func (x *RobustMessage) GetId() *RobustId
- func (x *RobustMessage) GetRemoteAddr() string
- func (x *RobustMessage) GetRevision() uint64
- func (x *RobustMessage) GetServers() []string
- func (x *RobustMessage) GetSession() *RobustId
- func (x *RobustMessage) GetType() RobustMessage_RobustType
- func (x *RobustMessage) GetUnixNano() int64
- func (*RobustMessage) ProtoMessage()
- func (x *RobustMessage) ProtoReflect() protoreflect.Message
- func (x *RobustMessage) Reset()
- func (x *RobustMessage) String() string
- type RobustMessage_RobustType
- func (RobustMessage_RobustType) Descriptor() protoreflect.EnumDescriptor
- func (x RobustMessage_RobustType) Enum() *RobustMessage_RobustType
- func (RobustMessage_RobustType) EnumDescriptor() ([]byte, []int)deprecated
- func (x RobustMessage_RobustType) Number() protoreflect.EnumNumber
- func (x RobustMessage_RobustType) String() string
- func (RobustMessage_RobustType) Type() protoreflect.EnumType
- type Snapshot
- func (*Snapshot) Descriptor() ([]byte, []int)deprecated
- func (x *Snapshot) GetChannels() []*Snapshot_Channel
- func (x *Snapshot) GetConfig() *Snapshot_Config
- func (x *Snapshot) GetLastIncludedIndex() uint64
- func (x *Snapshot) GetLastProcessed() *RobustId
- func (x *Snapshot) GetSessions() []*Snapshot_Session
- func (x *Snapshot) GetSvsholds() map[string]*Snapshot_SVSHold
- func (*Snapshot) ProtoMessage()
- func (x *Snapshot) ProtoReflect() protoreflect.Message
- func (x *Snapshot) Reset()
- func (x *Snapshot) String() string
- type Snapshot_Channel
- func (*Snapshot_Channel) Descriptor() ([]byte, []int)deprecated
- func (x *Snapshot_Channel) GetBans() []*Snapshot_Channel_BanPattern
- func (x *Snapshot_Channel) GetKey() string
- func (x *Snapshot_Channel) GetModes() []string
- func (x *Snapshot_Channel) GetName() string
- func (x *Snapshot_Channel) GetNicks() map[string]*Snapshot_Channel_Modes
- func (x *Snapshot_Channel) GetTopic() string
- func (x *Snapshot_Channel) GetTopicNick() string
- func (x *Snapshot_Channel) GetTopicTime() *Timestamp
- func (*Snapshot_Channel) ProtoMessage()
- func (x *Snapshot_Channel) ProtoReflect() protoreflect.Message
- func (x *Snapshot_Channel) Reset()
- func (x *Snapshot_Channel) String() string
- type Snapshot_Channel_BanPattern
- func (*Snapshot_Channel_BanPattern) Descriptor() ([]byte, []int)deprecated
- func (x *Snapshot_Channel_BanPattern) GetPattern() string
- func (x *Snapshot_Channel_BanPattern) GetRegexp() string
- func (*Snapshot_Channel_BanPattern) ProtoMessage()
- func (x *Snapshot_Channel_BanPattern) ProtoReflect() protoreflect.Message
- func (x *Snapshot_Channel_BanPattern) Reset()
- func (x *Snapshot_Channel_BanPattern) String() string
- type Snapshot_Channel_Modes
- func (*Snapshot_Channel_Modes) Descriptor() ([]byte, []int)deprecated
- func (x *Snapshot_Channel_Modes) GetMode() []string
- func (*Snapshot_Channel_Modes) ProtoMessage()
- func (x *Snapshot_Channel_Modes) ProtoReflect() protoreflect.Message
- func (x *Snapshot_Channel_Modes) Reset()
- func (x *Snapshot_Channel_Modes) String() string
- type Snapshot_Config
- func (*Snapshot_Config) Descriptor() ([]byte, []int)deprecated
- func (x *Snapshot_Config) GetBanned() map[string]string
- func (x *Snapshot_Config) GetCaptchaHmacSecret() string
- func (x *Snapshot_Config) GetCaptchaRequiredForLogin() bool
- func (x *Snapshot_Config) GetCaptchaUrl() string
- func (x *Snapshot_Config) GetIrc() *Snapshot_Config_IRC
- func (x *Snapshot_Config) GetMaxChannels() uint64
- func (x *Snapshot_Config) GetMaxSessions() uint64
- func (x *Snapshot_Config) GetPostMessageCooloff() string
- func (x *Snapshot_Config) GetRevision() uint64
- func (x *Snapshot_Config) GetSessionExpiration() string
- func (x *Snapshot_Config) GetTrustedBridges() map[string]string
- func (*Snapshot_Config) ProtoMessage()
- func (x *Snapshot_Config) ProtoReflect() protoreflect.Message
- func (x *Snapshot_Config) Reset()
- func (x *Snapshot_Config) String() string
- type Snapshot_Config_IRC
- func (*Snapshot_Config_IRC) Descriptor() ([]byte, []int)deprecated
- func (x *Snapshot_Config_IRC) GetOperators() []*Snapshot_Config_IRC_Operator
- func (x *Snapshot_Config_IRC) GetServices() []*Snapshot_Config_IRC_Service
- func (*Snapshot_Config_IRC) ProtoMessage()
- func (x *Snapshot_Config_IRC) ProtoReflect() protoreflect.Message
- func (x *Snapshot_Config_IRC) Reset()
- func (x *Snapshot_Config_IRC) String() string
- type Snapshot_Config_IRC_Operator
- func (*Snapshot_Config_IRC_Operator) Descriptor() ([]byte, []int)deprecated
- func (x *Snapshot_Config_IRC_Operator) GetName() string
- func (x *Snapshot_Config_IRC_Operator) GetPassword() string
- func (*Snapshot_Config_IRC_Operator) ProtoMessage()
- func (x *Snapshot_Config_IRC_Operator) ProtoReflect() protoreflect.Message
- func (x *Snapshot_Config_IRC_Operator) Reset()
- func (x *Snapshot_Config_IRC_Operator) String() string
- type Snapshot_Config_IRC_Service
- func (*Snapshot_Config_IRC_Service) Descriptor() ([]byte, []int)deprecated
- func (x *Snapshot_Config_IRC_Service) GetPassword() string
- func (*Snapshot_Config_IRC_Service) ProtoMessage()
- func (x *Snapshot_Config_IRC_Service) ProtoReflect() protoreflect.Message
- func (x *Snapshot_Config_IRC_Service) Reset()
- func (x *Snapshot_Config_IRC_Service) String() string
- type Snapshot_IRCPrefix
- func (*Snapshot_IRCPrefix) Descriptor() ([]byte, []int)deprecated
- func (x *Snapshot_IRCPrefix) GetHost() string
- func (x *Snapshot_IRCPrefix) GetName() string
- func (x *Snapshot_IRCPrefix) GetUser() string
- func (*Snapshot_IRCPrefix) ProtoMessage()
- func (x *Snapshot_IRCPrefix) ProtoReflect() protoreflect.Message
- func (x *Snapshot_IRCPrefix) Reset()
- func (x *Snapshot_IRCPrefix) String() string
- type Snapshot_SVSHold
- func (*Snapshot_SVSHold) Descriptor() ([]byte, []int)deprecated
- func (x *Snapshot_SVSHold) GetAdded() *Timestamp
- func (x *Snapshot_SVSHold) GetDuration() string
- func (x *Snapshot_SVSHold) GetReason() string
- func (*Snapshot_SVSHold) ProtoMessage()
- func (x *Snapshot_SVSHold) ProtoReflect() protoreflect.Message
- func (x *Snapshot_SVSHold) Reset()
- func (x *Snapshot_SVSHold) String() string
- type Snapshot_Session
- func (*Snapshot_Session) Descriptor() ([]byte, []int)deprecated
- func (x *Snapshot_Session) GetAuth() string
- func (x *Snapshot_Session) GetAwayMsg() string
- func (x *Snapshot_Session) GetChannels() []string
- func (x *Snapshot_Session) GetCreated() int64
- func (x *Snapshot_Session) GetId() *RobustId
- func (x *Snapshot_Session) GetInvitedTo() []string
- func (x *Snapshot_Session) GetIrcPrefix() *Snapshot_IRCPrefix
- func (x *Snapshot_Session) GetLastActivity() *Timestamp
- func (x *Snapshot_Session) GetLastClientMessageId() uint64
- func (x *Snapshot_Session) GetLastNonPing() *Timestamp
- func (x *Snapshot_Session) GetLastSolvedCaptcha() *Timestamp
- func (x *Snapshot_Session) GetLoggedIn() Bool
- func (x *Snapshot_Session) GetModes() []string
- func (x *Snapshot_Session) GetNick() string
- func (x *Snapshot_Session) GetOperator() bool
- func (x *Snapshot_Session) GetPass() string
- func (x *Snapshot_Session) GetRealname() string
- func (x *Snapshot_Session) GetRemoteAddr() string
- func (x *Snapshot_Session) GetServer() bool
- func (x *Snapshot_Session) GetSvid() string
- func (x *Snapshot_Session) GetThrottlingExponent() int64
- func (x *Snapshot_Session) GetUsername() string
- func (*Snapshot_Session) ProtoMessage()
- func (x *Snapshot_Session) ProtoReflect() protoreflect.Message
- func (x *Snapshot_Session) Reset()
- func (x *Snapshot_Session) String() string
- type Timestamp
Constants ¶
This section is empty.
Variables ¶
var ( Bool_name = map[int32]string{ 0: "UNSET", 1: "TRUE", 2: "FALSE", } Bool_value = map[string]int32{ "UNSET": 0, "TRUE": 1, "FALSE": 2, } )
Enum value maps for Bool.
var ( RobustMessage_RobustType_name = map[int32]string{ 0: "CREATE_SESSION", 1: "DELETE_SESSION", 2: "IRC_FROM_CLIENT", 3: "IRC_TO_CLIENT", 4: "PING", 5: "MESSAGE_OF_DEATH", 6: "CONFIG", 7: "STATE", 8: "ANY", } RobustMessage_RobustType_value = map[string]int32{ "CREATE_SESSION": 0, "DELETE_SESSION": 1, "IRC_FROM_CLIENT": 2, "IRC_TO_CLIENT": 3, "PING": 4, "MESSAGE_OF_DEATH": 5, "CONFIG": 6, "STATE": 7, "ANY": 8, } )
Enum value maps for RobustMessage_RobustType.
var ( RaftLog_LogType_name = map[int32]string{ 0: "COMMAND", 1: "NOOP", 2: "ADDPEER", 3: "REMOVEPEER", 4: "BARRIER", } RaftLog_LogType_value = map[string]int32{ "COMMAND": 0, "NOOP": 1, "ADDPEER": 2, "REMOVEPEER": 3, "BARRIER": 4, } )
Enum value maps for RaftLog_LogType.
var File_snapshot_proto protoreflect.FileDescriptor
var File_types_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool int32
Bool represents a boolean which can either be unset, true or false. This quirk is necessary because proto3 does not distinguish the default value (false) from a field not being set, which would not allow us to do upgrades from older versions of RobustIRC to newer versions of RobustIRC which introduce a new boolean field.
func (Bool) Descriptor ¶
func (Bool) Descriptor() protoreflect.EnumDescriptor
func (Bool) EnumDescriptor
deprecated
func (Bool) Number ¶
func (x Bool) Number() protoreflect.EnumNumber
func (Bool) Type ¶
func (Bool) Type() protoreflect.EnumType
type RaftLog ¶
type RaftLog struct { Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Term uint64 `protobuf:"varint,2,opt,name=term,proto3" json:"term,omitempty"` Type RaftLog_LogType `protobuf:"varint,3,opt,name=type,proto3,enum=proto.RaftLog_LogType" json:"type,omitempty"` Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` Extensions []byte `protobuf:"bytes,5,opt,name=extensions,proto3" json:"extensions,omitempty"` AppendedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=appended_at,json=appendedAt,proto3" json:"appended_at,omitempty"` // contains filtered or unexported fields }
func (*RaftLog) Descriptor
deprecated
func (*RaftLog) GetAppendedAt ¶
func (x *RaftLog) GetAppendedAt() *timestamppb.Timestamp
func (*RaftLog) GetExtensions ¶
func (*RaftLog) GetType ¶
func (x *RaftLog) GetType() RaftLog_LogType
func (*RaftLog) ProtoMessage ¶
func (*RaftLog) ProtoMessage()
func (*RaftLog) ProtoReflect ¶
func (x *RaftLog) ProtoReflect() protoreflect.Message
type RaftLog_LogType ¶
type RaftLog_LogType int32
const ( RaftLog_COMMAND RaftLog_LogType = 0 RaftLog_NOOP RaftLog_LogType = 1 RaftLog_ADDPEER RaftLog_LogType = 2 RaftLog_REMOVEPEER RaftLog_LogType = 3 RaftLog_BARRIER RaftLog_LogType = 4 )
func (RaftLog_LogType) Descriptor ¶
func (RaftLog_LogType) Descriptor() protoreflect.EnumDescriptor
func (RaftLog_LogType) Enum ¶
func (x RaftLog_LogType) Enum() *RaftLog_LogType
func (RaftLog_LogType) EnumDescriptor
deprecated
func (RaftLog_LogType) EnumDescriptor() ([]byte, []int)
Deprecated: Use RaftLog_LogType.Descriptor instead.
func (RaftLog_LogType) Number ¶
func (x RaftLog_LogType) Number() protoreflect.EnumNumber
func (RaftLog_LogType) String ¶
func (x RaftLog_LogType) String() string
func (RaftLog_LogType) Type ¶
func (RaftLog_LogType) Type() protoreflect.EnumType
type RobustId ¶
type RobustId struct { Id uint64 `protobuf:"fixed64,1,opt,name=id,proto3" json:"id,omitempty"` Reply uint64 `protobuf:"fixed64,2,opt,name=reply,proto3" json:"reply,omitempty"` // contains filtered or unexported fields }
func (*RobustId) Descriptor
deprecated
func (*RobustId) ProtoMessage ¶
func (*RobustId) ProtoMessage()
func (*RobustId) ProtoReflect ¶
func (x *RobustId) ProtoReflect() protoreflect.Message
type RobustMessage ¶
type RobustMessage struct { Id *RobustId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Session *RobustId `protobuf:"bytes,2,opt,name=session,proto3" json:"session,omitempty"` Type RobustMessage_RobustType `protobuf:"varint,3,opt,name=type,proto3,enum=proto.RobustMessage_RobustType" json:"type,omitempty"` Data string `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // TODO: use oneof for the following to save space? UnixNano int64 `protobuf:"varint,5,opt,name=unix_nano,json=unixNano,proto3" json:"unix_nano,omitempty"` Servers []string `protobuf:"bytes,6,rep,name=servers,proto3" json:"servers,omitempty"` CurrentMaster string `protobuf:"bytes,7,opt,name=current_master,json=currentMaster,proto3" json:"current_master,omitempty"` ClientMessageId uint64 `protobuf:"varint,8,opt,name=client_message_id,json=clientMessageId,proto3" json:"client_message_id,omitempty"` Revision uint64 `protobuf:"varint,9,opt,name=revision,proto3" json:"revision,omitempty"` RemoteAddr string `protobuf:"bytes,10,opt,name=remote_addr,json=remoteAddr,proto3" json:"remote_addr,omitempty"` // contains filtered or unexported fields }
func (*RobustMessage) Descriptor
deprecated
func (*RobustMessage) Descriptor() ([]byte, []int)
Deprecated: Use RobustMessage.ProtoReflect.Descriptor instead.
func (*RobustMessage) GetClientMessageId ¶
func (x *RobustMessage) GetClientMessageId() uint64
func (*RobustMessage) GetCurrentMaster ¶
func (x *RobustMessage) GetCurrentMaster() string
func (*RobustMessage) GetData ¶
func (x *RobustMessage) GetData() string
func (*RobustMessage) GetId ¶
func (x *RobustMessage) GetId() *RobustId
func (*RobustMessage) GetRemoteAddr ¶
func (x *RobustMessage) GetRemoteAddr() string
func (*RobustMessage) GetRevision ¶
func (x *RobustMessage) GetRevision() uint64
func (*RobustMessage) GetServers ¶
func (x *RobustMessage) GetServers() []string
func (*RobustMessage) GetSession ¶
func (x *RobustMessage) GetSession() *RobustId
func (*RobustMessage) GetType ¶
func (x *RobustMessage) GetType() RobustMessage_RobustType
func (*RobustMessage) GetUnixNano ¶
func (x *RobustMessage) GetUnixNano() int64
func (*RobustMessage) ProtoMessage ¶
func (*RobustMessage) ProtoMessage()
func (*RobustMessage) ProtoReflect ¶
func (x *RobustMessage) ProtoReflect() protoreflect.Message
func (*RobustMessage) Reset ¶
func (x *RobustMessage) Reset()
func (*RobustMessage) String ¶
func (x *RobustMessage) String() string
type RobustMessage_RobustType ¶
type RobustMessage_RobustType int32
const ( RobustMessage_CREATE_SESSION RobustMessage_RobustType = 0 RobustMessage_DELETE_SESSION RobustMessage_RobustType = 1 RobustMessage_IRC_FROM_CLIENT RobustMessage_RobustType = 2 RobustMessage_IRC_TO_CLIENT RobustMessage_RobustType = 3 RobustMessage_PING RobustMessage_RobustType = 4 RobustMessage_MESSAGE_OF_DEATH RobustMessage_RobustType = 5 RobustMessage_CONFIG RobustMessage_RobustType = 6 RobustMessage_STATE RobustMessage_RobustType = 7 RobustMessage_ANY RobustMessage_RobustType = 8 // TODO: what is this used for? )
func (RobustMessage_RobustType) Descriptor ¶
func (RobustMessage_RobustType) Descriptor() protoreflect.EnumDescriptor
func (RobustMessage_RobustType) Enum ¶
func (x RobustMessage_RobustType) Enum() *RobustMessage_RobustType
func (RobustMessage_RobustType) EnumDescriptor
deprecated
func (RobustMessage_RobustType) EnumDescriptor() ([]byte, []int)
Deprecated: Use RobustMessage_RobustType.Descriptor instead.
func (RobustMessage_RobustType) Number ¶
func (x RobustMessage_RobustType) Number() protoreflect.EnumNumber
func (RobustMessage_RobustType) String ¶
func (x RobustMessage_RobustType) String() string
func (RobustMessage_RobustType) Type ¶
func (RobustMessage_RobustType) Type() protoreflect.EnumType
type Snapshot ¶
type Snapshot struct { Sessions []*Snapshot_Session `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"` Channels []*Snapshot_Channel `protobuf:"bytes,2,rep,name=channels,proto3" json:"channels,omitempty"` Svsholds map[string]*Snapshot_SVSHold `` /* 157-byte string literal not displayed */ LastProcessed *RobustId `protobuf:"bytes,4,opt,name=last_processed,json=lastProcessed,proto3" json:"last_processed,omitempty"` Config *Snapshot_Config `protobuf:"bytes,5,opt,name=config,proto3" json:"config,omitempty"` // last_included_index is the last ircstore message index which was // included when taking the snapshot. This is relevant to store this // snapshot in fsm.lastSnapshotState when restoring after ircstore // was deleted. LastIncludedIndex uint64 `protobuf:"varint,6,opt,name=last_included_index,json=lastIncludedIndex,proto3" json:"last_included_index,omitempty"` // contains filtered or unexported fields }
Snapshot contains the entire state of an IRCServer object, so that a new IRCServer object can be created with exactly the same state.
func (*Snapshot) Descriptor
deprecated
func (*Snapshot) GetChannels ¶
func (x *Snapshot) GetChannels() []*Snapshot_Channel
func (*Snapshot) GetConfig ¶
func (x *Snapshot) GetConfig() *Snapshot_Config
func (*Snapshot) GetLastIncludedIndex ¶
func (*Snapshot) GetLastProcessed ¶
func (*Snapshot) GetSessions ¶
func (x *Snapshot) GetSessions() []*Snapshot_Session
func (*Snapshot) GetSvsholds ¶
func (x *Snapshot) GetSvsholds() map[string]*Snapshot_SVSHold
func (*Snapshot) ProtoMessage ¶
func (*Snapshot) ProtoMessage()
func (*Snapshot) ProtoReflect ¶
func (x *Snapshot) ProtoReflect() protoreflect.Message
type Snapshot_Channel ¶
type Snapshot_Channel struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` TopicNick string `protobuf:"bytes,2,opt,name=topic_nick,json=topicNick,proto3" json:"topic_nick,omitempty"` TopicTime *Timestamp `protobuf:"bytes,3,opt,name=topic_time,json=topicTime,proto3" json:"topic_time,omitempty"` Topic string `protobuf:"bytes,4,opt,name=topic,proto3" json:"topic,omitempty"` Nicks map[string]*Snapshot_Channel_Modes `` /* 151-byte string literal not displayed */ Modes []string `protobuf:"bytes,6,rep,name=modes,proto3" json:"modes,omitempty"` Bans []*Snapshot_Channel_BanPattern `protobuf:"bytes,7,rep,name=bans,proto3" json:"bans,omitempty"` Key string `protobuf:"bytes,8,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*Snapshot_Channel) Descriptor
deprecated
func (*Snapshot_Channel) Descriptor() ([]byte, []int)
Deprecated: Use Snapshot_Channel.ProtoReflect.Descriptor instead.
func (*Snapshot_Channel) GetBans ¶
func (x *Snapshot_Channel) GetBans() []*Snapshot_Channel_BanPattern
func (*Snapshot_Channel) GetKey ¶
func (x *Snapshot_Channel) GetKey() string
func (*Snapshot_Channel) GetModes ¶
func (x *Snapshot_Channel) GetModes() []string
func (*Snapshot_Channel) GetName ¶
func (x *Snapshot_Channel) GetName() string
func (*Snapshot_Channel) GetNicks ¶
func (x *Snapshot_Channel) GetNicks() map[string]*Snapshot_Channel_Modes
func (*Snapshot_Channel) GetTopic ¶
func (x *Snapshot_Channel) GetTopic() string
func (*Snapshot_Channel) GetTopicNick ¶
func (x *Snapshot_Channel) GetTopicNick() string
func (*Snapshot_Channel) GetTopicTime ¶
func (x *Snapshot_Channel) GetTopicTime() *Timestamp
func (*Snapshot_Channel) ProtoMessage ¶
func (*Snapshot_Channel) ProtoMessage()
func (*Snapshot_Channel) ProtoReflect ¶
func (x *Snapshot_Channel) ProtoReflect() protoreflect.Message
func (*Snapshot_Channel) Reset ¶
func (x *Snapshot_Channel) Reset()
func (*Snapshot_Channel) String ¶
func (x *Snapshot_Channel) String() string
type Snapshot_Channel_BanPattern ¶
type Snapshot_Channel_BanPattern struct { Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"` Regexp string `protobuf:"bytes,2,opt,name=regexp,proto3" json:"regexp,omitempty"` // contains filtered or unexported fields }
func (*Snapshot_Channel_BanPattern) Descriptor
deprecated
func (*Snapshot_Channel_BanPattern) Descriptor() ([]byte, []int)
Deprecated: Use Snapshot_Channel_BanPattern.ProtoReflect.Descriptor instead.
func (*Snapshot_Channel_BanPattern) GetPattern ¶
func (x *Snapshot_Channel_BanPattern) GetPattern() string
func (*Snapshot_Channel_BanPattern) GetRegexp ¶
func (x *Snapshot_Channel_BanPattern) GetRegexp() string
func (*Snapshot_Channel_BanPattern) ProtoMessage ¶
func (*Snapshot_Channel_BanPattern) ProtoMessage()
func (*Snapshot_Channel_BanPattern) ProtoReflect ¶
func (x *Snapshot_Channel_BanPattern) ProtoReflect() protoreflect.Message
func (*Snapshot_Channel_BanPattern) Reset ¶
func (x *Snapshot_Channel_BanPattern) Reset()
func (*Snapshot_Channel_BanPattern) String ¶
func (x *Snapshot_Channel_BanPattern) String() string
type Snapshot_Channel_Modes ¶
type Snapshot_Channel_Modes struct { Mode []string `protobuf:"bytes,1,rep,name=mode,proto3" json:"mode,omitempty"` // contains filtered or unexported fields }
Modes is a workaround because proto3 does not support map<string, repeated string>.
func (*Snapshot_Channel_Modes) Descriptor
deprecated
func (*Snapshot_Channel_Modes) Descriptor() ([]byte, []int)
Deprecated: Use Snapshot_Channel_Modes.ProtoReflect.Descriptor instead.
func (*Snapshot_Channel_Modes) GetMode ¶
func (x *Snapshot_Channel_Modes) GetMode() []string
func (*Snapshot_Channel_Modes) ProtoMessage ¶
func (*Snapshot_Channel_Modes) ProtoMessage()
func (*Snapshot_Channel_Modes) ProtoReflect ¶
func (x *Snapshot_Channel_Modes) ProtoReflect() protoreflect.Message
func (*Snapshot_Channel_Modes) Reset ¶
func (x *Snapshot_Channel_Modes) Reset()
func (*Snapshot_Channel_Modes) String ¶
func (x *Snapshot_Channel_Modes) String() string
type Snapshot_Config ¶
type Snapshot_Config struct { Revision uint64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"` Irc *Snapshot_Config_IRC `protobuf:"bytes,2,opt,name=irc,proto3" json:"irc,omitempty"` SessionExpiration string `protobuf:"bytes,3,opt,name=session_expiration,json=sessionExpiration,proto3" json:"session_expiration,omitempty"` PostMessageCooloff string `protobuf:"bytes,4,opt,name=post_message_cooloff,json=postMessageCooloff,proto3" json:"post_message_cooloff,omitempty"` TrustedBridges map[string]string `` /* 191-byte string literal not displayed */ CaptchaUrl string `protobuf:"bytes,6,opt,name=captcha_url,json=captchaUrl,proto3" json:"captcha_url,omitempty"` CaptchaHmacSecret string `protobuf:"bytes,7,opt,name=captcha_hmac_secret,json=captchaHmacSecret,proto3" json:"captcha_hmac_secret,omitempty"` CaptchaRequiredForLogin bool `` /* 135-byte string literal not displayed */ MaxSessions uint64 `protobuf:"varint,9,opt,name=max_sessions,json=maxSessions,proto3" json:"max_sessions,omitempty"` MaxChannels uint64 `protobuf:"varint,10,opt,name=max_channels,json=maxChannels,proto3" json:"max_channels,omitempty"` Banned map[string]string `` /* 154-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Snapshot_Config) Descriptor
deprecated
func (*Snapshot_Config) Descriptor() ([]byte, []int)
Deprecated: Use Snapshot_Config.ProtoReflect.Descriptor instead.
func (*Snapshot_Config) GetBanned ¶
func (x *Snapshot_Config) GetBanned() map[string]string
func (*Snapshot_Config) GetCaptchaHmacSecret ¶
func (x *Snapshot_Config) GetCaptchaHmacSecret() string
func (*Snapshot_Config) GetCaptchaRequiredForLogin ¶
func (x *Snapshot_Config) GetCaptchaRequiredForLogin() bool
func (*Snapshot_Config) GetCaptchaUrl ¶
func (x *Snapshot_Config) GetCaptchaUrl() string
func (*Snapshot_Config) GetIrc ¶
func (x *Snapshot_Config) GetIrc() *Snapshot_Config_IRC
func (*Snapshot_Config) GetMaxChannels ¶
func (x *Snapshot_Config) GetMaxChannels() uint64
func (*Snapshot_Config) GetMaxSessions ¶
func (x *Snapshot_Config) GetMaxSessions() uint64
func (*Snapshot_Config) GetPostMessageCooloff ¶
func (x *Snapshot_Config) GetPostMessageCooloff() string
func (*Snapshot_Config) GetRevision ¶
func (x *Snapshot_Config) GetRevision() uint64
func (*Snapshot_Config) GetSessionExpiration ¶
func (x *Snapshot_Config) GetSessionExpiration() string
func (*Snapshot_Config) GetTrustedBridges ¶
func (x *Snapshot_Config) GetTrustedBridges() map[string]string
func (*Snapshot_Config) ProtoMessage ¶
func (*Snapshot_Config) ProtoMessage()
func (*Snapshot_Config) ProtoReflect ¶
func (x *Snapshot_Config) ProtoReflect() protoreflect.Message
func (*Snapshot_Config) Reset ¶
func (x *Snapshot_Config) Reset()
func (*Snapshot_Config) String ¶
func (x *Snapshot_Config) String() string
type Snapshot_Config_IRC ¶
type Snapshot_Config_IRC struct { Operators []*Snapshot_Config_IRC_Operator `protobuf:"bytes,1,rep,name=operators,proto3" json:"operators,omitempty"` Services []*Snapshot_Config_IRC_Service `protobuf:"bytes,2,rep,name=services,proto3" json:"services,omitempty"` // contains filtered or unexported fields }
func (*Snapshot_Config_IRC) Descriptor
deprecated
func (*Snapshot_Config_IRC) Descriptor() ([]byte, []int)
Deprecated: Use Snapshot_Config_IRC.ProtoReflect.Descriptor instead.
func (*Snapshot_Config_IRC) GetOperators ¶
func (x *Snapshot_Config_IRC) GetOperators() []*Snapshot_Config_IRC_Operator
func (*Snapshot_Config_IRC) GetServices ¶
func (x *Snapshot_Config_IRC) GetServices() []*Snapshot_Config_IRC_Service
func (*Snapshot_Config_IRC) ProtoMessage ¶
func (*Snapshot_Config_IRC) ProtoMessage()
func (*Snapshot_Config_IRC) ProtoReflect ¶
func (x *Snapshot_Config_IRC) ProtoReflect() protoreflect.Message
func (*Snapshot_Config_IRC) Reset ¶
func (x *Snapshot_Config_IRC) Reset()
func (*Snapshot_Config_IRC) String ¶
func (x *Snapshot_Config_IRC) String() string
type Snapshot_Config_IRC_Operator ¶
type Snapshot_Config_IRC_Operator struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*Snapshot_Config_IRC_Operator) Descriptor
deprecated
func (*Snapshot_Config_IRC_Operator) Descriptor() ([]byte, []int)
Deprecated: Use Snapshot_Config_IRC_Operator.ProtoReflect.Descriptor instead.
func (*Snapshot_Config_IRC_Operator) GetName ¶
func (x *Snapshot_Config_IRC_Operator) GetName() string
func (*Snapshot_Config_IRC_Operator) GetPassword ¶
func (x *Snapshot_Config_IRC_Operator) GetPassword() string
func (*Snapshot_Config_IRC_Operator) ProtoMessage ¶
func (*Snapshot_Config_IRC_Operator) ProtoMessage()
func (*Snapshot_Config_IRC_Operator) ProtoReflect ¶
func (x *Snapshot_Config_IRC_Operator) ProtoReflect() protoreflect.Message
func (*Snapshot_Config_IRC_Operator) Reset ¶
func (x *Snapshot_Config_IRC_Operator) Reset()
func (*Snapshot_Config_IRC_Operator) String ¶
func (x *Snapshot_Config_IRC_Operator) String() string
type Snapshot_Config_IRC_Service ¶
type Snapshot_Config_IRC_Service struct { Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*Snapshot_Config_IRC_Service) Descriptor
deprecated
func (*Snapshot_Config_IRC_Service) Descriptor() ([]byte, []int)
Deprecated: Use Snapshot_Config_IRC_Service.ProtoReflect.Descriptor instead.
func (*Snapshot_Config_IRC_Service) GetPassword ¶
func (x *Snapshot_Config_IRC_Service) GetPassword() string
func (*Snapshot_Config_IRC_Service) ProtoMessage ¶
func (*Snapshot_Config_IRC_Service) ProtoMessage()
func (*Snapshot_Config_IRC_Service) ProtoReflect ¶
func (x *Snapshot_Config_IRC_Service) ProtoReflect() protoreflect.Message
func (*Snapshot_Config_IRC_Service) Reset ¶
func (x *Snapshot_Config_IRC_Service) Reset()
func (*Snapshot_Config_IRC_Service) String ¶
func (x *Snapshot_Config_IRC_Service) String() string
type Snapshot_IRCPrefix ¶
type Snapshot_IRCPrefix struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` // contains filtered or unexported fields }
func (*Snapshot_IRCPrefix) Descriptor
deprecated
func (*Snapshot_IRCPrefix) Descriptor() ([]byte, []int)
Deprecated: Use Snapshot_IRCPrefix.ProtoReflect.Descriptor instead.
func (*Snapshot_IRCPrefix) GetHost ¶
func (x *Snapshot_IRCPrefix) GetHost() string
func (*Snapshot_IRCPrefix) GetName ¶
func (x *Snapshot_IRCPrefix) GetName() string
func (*Snapshot_IRCPrefix) GetUser ¶
func (x *Snapshot_IRCPrefix) GetUser() string
func (*Snapshot_IRCPrefix) ProtoMessage ¶
func (*Snapshot_IRCPrefix) ProtoMessage()
func (*Snapshot_IRCPrefix) ProtoReflect ¶
func (x *Snapshot_IRCPrefix) ProtoReflect() protoreflect.Message
func (*Snapshot_IRCPrefix) Reset ¶
func (x *Snapshot_IRCPrefix) Reset()
func (*Snapshot_IRCPrefix) String ¶
func (x *Snapshot_IRCPrefix) String() string
type Snapshot_SVSHold ¶
type Snapshot_SVSHold struct { Added *Timestamp `protobuf:"bytes,1,opt,name=added,proto3" json:"added,omitempty"` Duration string `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` // contains filtered or unexported fields }
func (*Snapshot_SVSHold) Descriptor
deprecated
func (*Snapshot_SVSHold) Descriptor() ([]byte, []int)
Deprecated: Use Snapshot_SVSHold.ProtoReflect.Descriptor instead.
func (*Snapshot_SVSHold) GetAdded ¶
func (x *Snapshot_SVSHold) GetAdded() *Timestamp
func (*Snapshot_SVSHold) GetDuration ¶
func (x *Snapshot_SVSHold) GetDuration() string
func (*Snapshot_SVSHold) GetReason ¶
func (x *Snapshot_SVSHold) GetReason() string
func (*Snapshot_SVSHold) ProtoMessage ¶
func (*Snapshot_SVSHold) ProtoMessage()
func (*Snapshot_SVSHold) ProtoReflect ¶
func (x *Snapshot_SVSHold) ProtoReflect() protoreflect.Message
func (*Snapshot_SVSHold) Reset ¶
func (x *Snapshot_SVSHold) Reset()
func (*Snapshot_SVSHold) String ¶
func (x *Snapshot_SVSHold) String() string
type Snapshot_Session ¶
type Snapshot_Session struct { Id *RobustId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Auth string `protobuf:"bytes,2,opt,name=auth,proto3" json:"auth,omitempty"` Nick string `protobuf:"bytes,3,opt,name=nick,proto3" json:"nick,omitempty"` Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` Realname string `protobuf:"bytes,5,opt,name=realname,proto3" json:"realname,omitempty"` Channels []string `protobuf:"bytes,6,rep,name=channels,proto3" json:"channels,omitempty"` LastActivity *Timestamp `protobuf:"bytes,7,opt,name=last_activity,json=lastActivity,proto3" json:"last_activity,omitempty"` Operator bool `protobuf:"varint,8,opt,name=operator,proto3" json:"operator,omitempty"` AwayMsg string `protobuf:"bytes,9,opt,name=away_msg,json=awayMsg,proto3" json:"away_msg,omitempty"` Created int64 `protobuf:"varint,22,opt,name=created,proto3" json:"created,omitempty"` ThrottlingExponent int64 `protobuf:"varint,10,opt,name=throttling_exponent,json=throttlingExponent,proto3" json:"throttling_exponent,omitempty"` InvitedTo []string `protobuf:"bytes,11,rep,name=invited_to,json=invitedTo,proto3" json:"invited_to,omitempty"` Modes []string `protobuf:"bytes,12,rep,name=modes,proto3" json:"modes,omitempty"` Svid string `protobuf:"bytes,13,opt,name=svid,proto3" json:"svid,omitempty"` Pass string `protobuf:"bytes,14,opt,name=pass,proto3" json:"pass,omitempty"` Server bool `protobuf:"varint,15,opt,name=server,proto3" json:"server,omitempty"` LastClientMessageId uint64 `protobuf:"varint,17,opt,name=last_client_message_id,json=lastClientMessageId,proto3" json:"last_client_message_id,omitempty"` IrcPrefix *Snapshot_IRCPrefix `protobuf:"bytes,18,opt,name=irc_prefix,json=ircPrefix,proto3" json:"irc_prefix,omitempty"` LastNonPing *Timestamp `protobuf:"bytes,19,opt,name=last_non_ping,json=lastNonPing,proto3" json:"last_non_ping,omitempty"` LastSolvedCaptcha *Timestamp `protobuf:"bytes,20,opt,name=last_solved_captcha,json=lastSolvedCaptcha,proto3" json:"last_solved_captcha,omitempty"` LoggedIn Bool `protobuf:"varint,21,opt,name=logged_in,json=loggedIn,proto3,enum=proto.Bool" json:"logged_in,omitempty"` RemoteAddr string `protobuf:"bytes,23,opt,name=remote_addr,json=remoteAddr,proto3" json:"remote_addr,omitempty"` // contains filtered or unexported fields }
func (*Snapshot_Session) Descriptor
deprecated
func (*Snapshot_Session) Descriptor() ([]byte, []int)
Deprecated: Use Snapshot_Session.ProtoReflect.Descriptor instead.
func (*Snapshot_Session) GetAuth ¶
func (x *Snapshot_Session) GetAuth() string
func (*Snapshot_Session) GetAwayMsg ¶
func (x *Snapshot_Session) GetAwayMsg() string
func (*Snapshot_Session) GetChannels ¶
func (x *Snapshot_Session) GetChannels() []string
func (*Snapshot_Session) GetCreated ¶
func (x *Snapshot_Session) GetCreated() int64
func (*Snapshot_Session) GetId ¶
func (x *Snapshot_Session) GetId() *RobustId
func (*Snapshot_Session) GetInvitedTo ¶
func (x *Snapshot_Session) GetInvitedTo() []string
func (*Snapshot_Session) GetIrcPrefix ¶
func (x *Snapshot_Session) GetIrcPrefix() *Snapshot_IRCPrefix
func (*Snapshot_Session) GetLastActivity ¶
func (x *Snapshot_Session) GetLastActivity() *Timestamp
func (*Snapshot_Session) GetLastClientMessageId ¶
func (x *Snapshot_Session) GetLastClientMessageId() uint64
func (*Snapshot_Session) GetLastNonPing ¶
func (x *Snapshot_Session) GetLastNonPing() *Timestamp
func (*Snapshot_Session) GetLastSolvedCaptcha ¶
func (x *Snapshot_Session) GetLastSolvedCaptcha() *Timestamp
func (*Snapshot_Session) GetLoggedIn ¶
func (x *Snapshot_Session) GetLoggedIn() Bool
func (*Snapshot_Session) GetModes ¶
func (x *Snapshot_Session) GetModes() []string
func (*Snapshot_Session) GetNick ¶
func (x *Snapshot_Session) GetNick() string
func (*Snapshot_Session) GetOperator ¶
func (x *Snapshot_Session) GetOperator() bool
func (*Snapshot_Session) GetPass ¶
func (x *Snapshot_Session) GetPass() string
func (*Snapshot_Session) GetRealname ¶
func (x *Snapshot_Session) GetRealname() string
func (*Snapshot_Session) GetRemoteAddr ¶
func (x *Snapshot_Session) GetRemoteAddr() string
func (*Snapshot_Session) GetServer ¶
func (x *Snapshot_Session) GetServer() bool
func (*Snapshot_Session) GetSvid ¶
func (x *Snapshot_Session) GetSvid() string
func (*Snapshot_Session) GetThrottlingExponent ¶
func (x *Snapshot_Session) GetThrottlingExponent() int64
func (*Snapshot_Session) GetUsername ¶
func (x *Snapshot_Session) GetUsername() string
func (*Snapshot_Session) ProtoMessage ¶
func (*Snapshot_Session) ProtoMessage()
func (*Snapshot_Session) ProtoReflect ¶
func (x *Snapshot_Session) ProtoReflect() protoreflect.Message
func (*Snapshot_Session) Reset ¶
func (x *Snapshot_Session) Reset()
func (*Snapshot_Session) String ¶
func (x *Snapshot_Session) String() string
type Timestamp ¶
type Timestamp struct { UnixNano int64 `protobuf:"varint,1,opt,name=unix_nano,json=unixNano,proto3" json:"unix_nano,omitempty"` IsZero bool `protobuf:"varint,2,opt,name=is_zero,json=isZero,proto3" json:"is_zero,omitempty"` // contains filtered or unexported fields }
Timestamp serializes a Go time.Time value with correct IsZero() semantics. Merely serializing the UnixNano() value is not sufficient, see https://play.golang.org/p/n3ZWGwZCKR
func (*Timestamp) Descriptor
deprecated
func (*Timestamp) GetUnixNano ¶
func (*Timestamp) ProtoMessage ¶
func (*Timestamp) ProtoMessage()
func (*Timestamp) ProtoReflect ¶
func (x *Timestamp) ProtoReflect() protoreflect.Message