Help us shape the future of Go! Take the 2026 Go Developer Survey

profile

package
v0.1.65 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) CloneVT

func (m *Counts) CloneVT() *Counts

func (*Counts) EqualMessageVT

func (this *Counts) EqualMessageVT(thatMsg any) bool

func (*Counts) EqualVT

func (this *Counts) EqualVT(that *Counts) bool

func (*Counts) GetCalls

func (x *Counts) GetCalls() uint64

func (*Counts) GetFailed

func (x *Counts) GetFailed() uint64

func (*Counts) GetRefused

func (x *Counts) GetRefused() uint64

func (*Counts) MarshalJSON

func (x *Counts) MarshalJSON() ([]byte, error)

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 (x *Counts) MarshalProtoText() string

func (*Counts) MarshalToSizedBufferVT

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

func (*Counts) MarshalToVT

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

func (*Counts) MarshalVT

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

func (*Counts) ProtoMessage

func (*Counts) ProtoMessage()

func (*Counts) Reset

func (x *Counts) Reset()

func (*Counts) SizeVT

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

func (*Counts) String

func (x *Counts) String() string

func (*Counts) UnmarshalJSON

func (x *Counts) UnmarshalJSON(b []byte) error

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

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

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) CloneVT

func (m *KeyCalls) CloneVT() *KeyCalls

func (*KeyCalls) EqualMessageVT

func (this *KeyCalls) EqualMessageVT(thatMsg any) bool

func (*KeyCalls) EqualVT

func (this *KeyCalls) EqualVT(that *KeyCalls) bool

func (*KeyCalls) GetCounts

func (x *KeyCalls) GetCounts() *Counts

func (*KeyCalls) GetKey

func (x *KeyCalls) GetKey() string

func (*KeyCalls) GetMethod

func (x *KeyCalls) GetMethod() string

func (*KeyCalls) MarshalJSON

func (x *KeyCalls) MarshalJSON() ([]byte, error)

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 (x *KeyCalls) MarshalProtoText() string

func (*KeyCalls) MarshalToSizedBufferVT

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

func (*KeyCalls) MarshalToVT

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

func (*KeyCalls) MarshalVT

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

func (*KeyCalls) ProtoMessage

func (*KeyCalls) ProtoMessage()

func (*KeyCalls) Reset

func (x *KeyCalls) Reset()

func (*KeyCalls) SizeVT

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

func (*KeyCalls) String

func (x *KeyCalls) String() string

func (*KeyCalls) UnmarshalJSON

func (x *KeyCalls) UnmarshalJSON(b []byte) error

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

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

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

Jump to

Keyboard shortcuts

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