Versions in this module Expand all Collapse all v0 v0.0.1 Apr 29, 2023 Changes in this version + const BanListType + const ChannelRemoveType + const ChannelType + const ConfigKeyValuePairType + const ServerType + const UserRemoveType + const UserType + var ErrCRC32Mismatch = errors.New("CRC32 mismatch") + var ErrRecordTooBig = errors.New("the record in the file is too big") + var ErrRemainingBytesForRecord = errors.New("remaining bytes in record") + var ErrTxGroupFull = errors.New("transction group is full") + var ErrTxGroupValueTooBig = errors.New("value too big to put inside the txgroup") + var ErrUnexpectedEndOfRecord = errors.New("unexpected end of record") + type ACL struct + Allow *uint32 + ApplyHere *bool + ApplySubs *bool + Deny *uint32 + Group *string + UserId *uint32 + XXX_unrecognized []byte + func (*ACL) ProtoMessage() + func (this *ACL) GetAllow() uint32 + func (this *ACL) GetApplyHere() bool + func (this *ACL) GetApplySubs() bool + func (this *ACL) GetDeny() uint32 + func (this *ACL) GetGroup() string + func (this *ACL) GetUserId() uint32 + func (this *ACL) Reset() + func (this *ACL) String() string + type Ban struct + CertHash *string + Duration *uint32 + Ip []byte + Mask *uint32 + Reason *string + Start *int64 + Username *string + XXX_unrecognized []byte + func (*Ban) ProtoMessage() + func (this *Ban) GetCertHash() string + func (this *Ban) GetDuration() uint32 + func (this *Ban) GetIp() []byte + func (this *Ban) GetMask() uint32 + func (this *Ban) GetReason() string + func (this *Ban) GetStart() int64 + func (this *Ban) GetUsername() string + func (this *Ban) Reset() + func (this *Ban) String() string + type BanList struct + Bans []*Ban + XXX_unrecognized []byte + func (*BanList) ProtoMessage() + func (this *BanList) Reset() + func (this *BanList) String() string + type Channel struct + Acl []*ACL + DescriptionBlob *string + Groups []*Group + Id *uint32 + InheritAcl *bool + Links []uint32 + Name *string + ParentId *uint32 + Position *int64 + XXX_unrecognized []byte + func (*Channel) ProtoMessage() + func (this *Channel) GetDescriptionBlob() string + func (this *Channel) GetId() uint32 + func (this *Channel) GetInheritAcl() bool + func (this *Channel) GetName() string + func (this *Channel) GetParentId() uint32 + func (this *Channel) GetPosition() int64 + func (this *Channel) Reset() + func (this *Channel) String() string + type ChannelRemove struct + Id *uint32 + XXX_unrecognized []byte + func (*ChannelRemove) ProtoMessage() + func (this *ChannelRemove) GetId() uint32 + func (this *ChannelRemove) Reset() + func (this *ChannelRemove) String() string + type ConfigKeyValuePair struct + Key *string + Value *string + XXX_unrecognized []byte + func (*ConfigKeyValuePair) ProtoMessage() + func (this *ConfigKeyValuePair) GetKey() string + func (this *ConfigKeyValuePair) GetValue() string + func (this *ConfigKeyValuePair) Reset() + func (this *ConfigKeyValuePair) String() string + type Group struct + Add []uint32 + Inherit *bool + Inheritable *bool + Name *string + Remove []uint32 + XXX_unrecognized []byte + func (*Group) ProtoMessage() + func (this *Group) GetInherit() bool + func (this *Group) GetInheritable() bool + func (this *Group) GetName() string + func (this *Group) Reset() + func (this *Group) String() string + type Log struct + func NewLogFile(fn string) (*Log, error) + func (log *Log) BeginTx() *LogTx + func (log *Log) Close() error + func (log *Log) Put(value interface{}) (err error) + type LogTx struct + func (tx *LogTx) Commit() (err error) + func (tx *LogTx) Put(value interface{}) (err error) + type Server struct + BanList *BanList + Channels []*Channel + Config []*ConfigKeyValuePair + Users []*User + XXX_unrecognized []byte + func (*Server) ProtoMessage() + func (this *Server) GetBanList() *BanList + func (this *Server) Reset() + func (this *Server) String() string + type User struct + CertHash *string + CommentBlob *string + Email *string + Id *uint32 + LastActive *uint64 + LastChannelId *uint32 + Name *string + Password *string + TextureBlob *string + XXX_unrecognized []byte + func (*User) ProtoMessage() + func (this *User) GetCertHash() string + func (this *User) GetCommentBlob() string + func (this *User) GetEmail() string + func (this *User) GetId() uint32 + func (this *User) GetLastActive() uint64 + func (this *User) GetLastChannelId() uint32 + func (this *User) GetName() string + func (this *User) GetPassword() string + func (this *User) GetTextureBlob() string + func (this *User) Reset() + func (this *User) String() string + type UserRemove struct + Id *uint32 + XXX_unrecognized []byte + func (*UserRemove) ProtoMessage() + func (this *UserRemove) GetId() uint32 + func (this *UserRemove) Reset() + func (this *UserRemove) String() string + type Walker struct + func NewReaderWalker(r io.Reader) (walker *Walker, err error) + func (walker *Walker) Next() (entries []interface{}, err error)