Documentation
¶
Index ¶
- type CallProfile
- func (m *CallProfile) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *CallProfile) CloneVT() *CallProfile
- func (this *CallProfile) EqualMessageVT(thatMsg any) bool
- func (this *CallProfile) EqualVT(that *CallProfile) bool
- func (x *CallProfile) GetKeys() []*KeyCalls
- func (x *CallProfile) GetMethods() []*MethodCalls
- func (x *CallProfile) GetOverflow() uint64
- func (x *CallProfile) MarshalJSON() ([]byte, error)
- func (x *CallProfile) MarshalProtoJSON(s *json.MarshalState)
- func (x *CallProfile) MarshalProtoText() string
- func (m *CallProfile) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *CallProfile) MarshalToVT(dAtA []byte) (int, error)
- func (m *CallProfile) MarshalVT() (dAtA []byte, err error)
- func (*CallProfile) ProtoMessage()
- func (x *CallProfile) Reset()
- func (m *CallProfile) SizeVT() (n int)
- func (x *CallProfile) String() string
- func (x *CallProfile) UnmarshalJSON(b []byte) error
- func (x *CallProfile) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *CallProfile) UnmarshalVT(dAtA []byte) error
- type Counts
- func (m *Counts) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Counts) CloneVT() *Counts
- func (this *Counts) EqualMessageVT(thatMsg any) bool
- func (this *Counts) EqualVT(that *Counts) bool
- func (x *Counts) GetCalls() uint64
- func (x *Counts) GetFailed() uint64
- func (x *Counts) GetRefused() uint64
- func (x *Counts) MarshalJSON() ([]byte, error)
- func (x *Counts) MarshalProtoJSON(s *json.MarshalState)
- func (x *Counts) MarshalProtoText() string
- func (m *Counts) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Counts) MarshalToVT(dAtA []byte) (int, error)
- func (m *Counts) MarshalVT() (dAtA []byte, err error)
- func (*Counts) ProtoMessage()
- func (x *Counts) Reset()
- func (m *Counts) SizeVT() (n int)
- func (x *Counts) String() string
- func (x *Counts) UnmarshalJSON(b []byte) error
- func (x *Counts) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Counts) UnmarshalVT(dAtA []byte) error
- type KeyCalls
- func (m *KeyCalls) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *KeyCalls) CloneVT() *KeyCalls
- func (this *KeyCalls) EqualMessageVT(thatMsg any) bool
- func (this *KeyCalls) EqualVT(that *KeyCalls) bool
- func (x *KeyCalls) GetCounts() *Counts
- func (x *KeyCalls) GetKey() string
- func (x *KeyCalls) GetMethod() string
- func (x *KeyCalls) MarshalJSON() ([]byte, error)
- func (x *KeyCalls) MarshalProtoJSON(s *json.MarshalState)
- func (x *KeyCalls) MarshalProtoText() string
- func (m *KeyCalls) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *KeyCalls) MarshalToVT(dAtA []byte) (int, error)
- func (m *KeyCalls) MarshalVT() (dAtA []byte, err error)
- func (*KeyCalls) ProtoMessage()
- func (x *KeyCalls) Reset()
- func (m *KeyCalls) SizeVT() (n int)
- func (x *KeyCalls) String() string
- func (x *KeyCalls) UnmarshalJSON(b []byte) error
- func (x *KeyCalls) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *KeyCalls) UnmarshalVT(dAtA []byte) error
- type MethodCalls
- func (m *MethodCalls) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *MethodCalls) CloneVT() *MethodCalls
- func (this *MethodCalls) EqualMessageVT(thatMsg any) bool
- func (this *MethodCalls) EqualVT(that *MethodCalls) bool
- func (x *MethodCalls) GetCounts() *Counts
- func (x *MethodCalls) GetMethod() string
- func (x *MethodCalls) MarshalJSON() ([]byte, error)
- func (x *MethodCalls) MarshalProtoJSON(s *json.MarshalState)
- func (x *MethodCalls) MarshalProtoText() string
- func (m *MethodCalls) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *MethodCalls) MarshalToVT(dAtA []byte) (int, error)
- func (m *MethodCalls) MarshalVT() (dAtA []byte, err error)
- func (*MethodCalls) ProtoMessage()
- func (x *MethodCalls) Reset()
- func (m *MethodCalls) SizeVT() (n int)
- func (x *MethodCalls) String() string
- func (x *MethodCalls) UnmarshalJSON(b []byte) error
- func (x *MethodCalls) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *MethodCalls) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallProfile ¶
type CallProfile struct {
// Methods holds the calls of each method the mod called.
Methods []*MethodCalls `protobuf:"bytes,1,rep,name=methods,proto3" json:"methods,omitempty"`
// Keys holds the calls under each key the mod's calls named.
Keys []*KeyCalls `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
// Overflow counts the keys the host did not keep, one for each call that
// named a new key after the mod had named as many distinct keys as the
// host keeps. A mod that names many distinct keys is itself worth reading.
Overflow uint64 `protobuf:"varint,3,opt,name=overflow,proto3" json:"overflow,omitempty"`
// contains filtered or unexported fields
}
CallProfile counts the host calls one mod made over an interval, so a host operator sees what the mod reaches. A host sends one profile for each interval in which the mod called, with only the methods and keys it called in that interval; adding the profiles gives the totals.
func (*CallProfile) CloneMessageVT ¶
func (m *CallProfile) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*CallProfile) CloneVT ¶
func (m *CallProfile) CloneVT() *CallProfile
func (*CallProfile) EqualMessageVT ¶
func (this *CallProfile) EqualMessageVT(thatMsg any) bool
func (*CallProfile) EqualVT ¶
func (this *CallProfile) EqualVT(that *CallProfile) bool
func (*CallProfile) GetKeys ¶
func (x *CallProfile) GetKeys() []*KeyCalls
func (*CallProfile) GetMethods ¶
func (x *CallProfile) GetMethods() []*MethodCalls
func (*CallProfile) GetOverflow ¶
func (x *CallProfile) GetOverflow() uint64
func (*CallProfile) MarshalJSON ¶
func (x *CallProfile) MarshalJSON() ([]byte, error)
MarshalJSON marshals the CallProfile to JSON.
func (*CallProfile) MarshalProtoJSON ¶
func (x *CallProfile) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the CallProfile message to JSON.
func (*CallProfile) MarshalProtoText ¶
func (x *CallProfile) MarshalProtoText() string
func (*CallProfile) MarshalToSizedBufferVT ¶
func (m *CallProfile) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*CallProfile) MarshalToVT ¶
func (m *CallProfile) MarshalToVT(dAtA []byte) (int, error)
func (*CallProfile) MarshalVT ¶
func (m *CallProfile) MarshalVT() (dAtA []byte, err error)
func (*CallProfile) ProtoMessage ¶
func (*CallProfile) ProtoMessage()
func (*CallProfile) Reset ¶
func (x *CallProfile) Reset()
func (*CallProfile) SizeVT ¶
func (m *CallProfile) SizeVT() (n int)
func (*CallProfile) String ¶
func (x *CallProfile) String() string
func (*CallProfile) UnmarshalJSON ¶
func (x *CallProfile) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the CallProfile from JSON.
func (*CallProfile) UnmarshalProtoJSON ¶
func (x *CallProfile) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the CallProfile message from JSON.
func (*CallProfile) UnmarshalVT ¶
func (m *CallProfile) UnmarshalVT(dAtA []byte) error
type Counts ¶
type Counts struct {
// Calls counts every call.
Calls uint64 `protobuf:"varint,1,opt,name=calls,proto3" json:"calls,omitempty"`
// Failed counts the calls the host answered with an error.
Failed uint64 `protobuf:"varint,2,opt,name=failed,proto3" json:"failed,omitempty"`
// Refused counts the failed calls the host refused at its boundary before
// reaching the game: a method the host does not have, a request outside the
// mod's scope, a console command a mod may not run, or a file name outside
// the mod's files.
Refused uint64 `protobuf:"varint,3,opt,name=refused,proto3" json:"refused,omitempty"`
// contains filtered or unexported fields
}
Counts are the calls under one method or key.
func (*Counts) CloneMessageVT ¶
func (m *Counts) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Counts) EqualMessageVT ¶
func (*Counts) GetRefused ¶
func (*Counts) MarshalJSON ¶
MarshalJSON marshals the Counts to JSON.
func (*Counts) MarshalProtoJSON ¶
func (x *Counts) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Counts message to JSON.
func (*Counts) MarshalProtoText ¶
func (*Counts) MarshalToSizedBufferVT ¶
func (*Counts) ProtoMessage ¶
func (*Counts) ProtoMessage()
func (*Counts) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Counts from JSON.
func (*Counts) UnmarshalProtoJSON ¶
func (x *Counts) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Counts message from JSON.
func (*Counts) UnmarshalVT ¶
type KeyCalls ¶
type KeyCalls struct {
// Method names the method, or is empty for a name the host has no method
// for.
Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
// Key is what the calls reach, or the name an unknown method was called
// by. A host may shorten a long key, and replaces one that is not UTF-8
// with "(not UTF-8)".
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// Counts are the key's calls. A call that names several keys counts under
// each, and is refused under the key the host refused.
Counts *Counts `protobuf:"bytes,3,opt,name=counts,proto3" json:"counts,omitempty"`
// contains filtered or unexported fields
}
KeyCalls is the calls of one method that named one key: what the call reaches, such as the class and field "CCitadelPlayerPawn.m_iHealth" a ReadField call reads, or the command "citadel_active_lane" a ServerCommand line runs.
func (*KeyCalls) CloneMessageVT ¶
func (m *KeyCalls) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*KeyCalls) EqualMessageVT ¶
func (*KeyCalls) MarshalJSON ¶
MarshalJSON marshals the KeyCalls to JSON.
func (*KeyCalls) MarshalProtoJSON ¶
func (x *KeyCalls) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the KeyCalls message to JSON.
func (*KeyCalls) MarshalProtoText ¶
func (*KeyCalls) MarshalToSizedBufferVT ¶
func (*KeyCalls) ProtoMessage ¶
func (*KeyCalls) ProtoMessage()
func (*KeyCalls) UnmarshalJSON ¶
UnmarshalJSON unmarshals the KeyCalls from JSON.
func (*KeyCalls) UnmarshalProtoJSON ¶
func (x *KeyCalls) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the KeyCalls message from JSON.
func (*KeyCalls) UnmarshalVT ¶
type MethodCalls ¶
type MethodCalls struct {
// Method names the method, such as "ReadField". An empty method counts the
// calls to names the host has no method for, each named by a key.
Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
// Counts are the method's calls.
Counts *Counts `protobuf:"bytes,2,opt,name=counts,proto3" json:"counts,omitempty"`
// contains filtered or unexported fields
}
MethodCalls is the calls of one Host method.
func (*MethodCalls) CloneMessageVT ¶
func (m *MethodCalls) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*MethodCalls) CloneVT ¶
func (m *MethodCalls) CloneVT() *MethodCalls
func (*MethodCalls) EqualMessageVT ¶
func (this *MethodCalls) EqualMessageVT(thatMsg any) bool
func (*MethodCalls) EqualVT ¶
func (this *MethodCalls) EqualVT(that *MethodCalls) bool
func (*MethodCalls) GetCounts ¶
func (x *MethodCalls) GetCounts() *Counts
func (*MethodCalls) GetMethod ¶
func (x *MethodCalls) GetMethod() string
func (*MethodCalls) MarshalJSON ¶
func (x *MethodCalls) MarshalJSON() ([]byte, error)
MarshalJSON marshals the MethodCalls to JSON.
func (*MethodCalls) MarshalProtoJSON ¶
func (x *MethodCalls) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the MethodCalls message to JSON.
func (*MethodCalls) MarshalProtoText ¶
func (x *MethodCalls) MarshalProtoText() string
func (*MethodCalls) MarshalToSizedBufferVT ¶
func (m *MethodCalls) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*MethodCalls) MarshalToVT ¶
func (m *MethodCalls) MarshalToVT(dAtA []byte) (int, error)
func (*MethodCalls) MarshalVT ¶
func (m *MethodCalls) MarshalVT() (dAtA []byte, err error)
func (*MethodCalls) ProtoMessage ¶
func (*MethodCalls) ProtoMessage()
func (*MethodCalls) Reset ¶
func (x *MethodCalls) Reset()
func (*MethodCalls) SizeVT ¶
func (m *MethodCalls) SizeVT() (n int)
func (*MethodCalls) String ¶
func (x *MethodCalls) String() string
func (*MethodCalls) UnmarshalJSON ¶
func (x *MethodCalls) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the MethodCalls from JSON.
func (*MethodCalls) UnmarshalProtoJSON ¶
func (x *MethodCalls) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the MethodCalls message from JSON.
func (*MethodCalls) UnmarshalVT ¶
func (m *MethodCalls) UnmarshalVT(dAtA []byte) error