Documentation ¶
Overview ¶
Package usage is a generated protocol buffer package.
It is generated from these files:
github.com/annwntech/micro/v2/internal/usage/proto/usage.proto
It has these top-level messages:
Usage Metrics
Index ¶
- type Metrics
- func (*Metrics) Descriptor() ([]byte, []int)
- func (m *Metrics) GetCount() map[string]uint64
- func (*Metrics) ProtoMessage()
- func (m *Metrics) Reset()
- func (m *Metrics) String() string
- func (m *Metrics) XXX_DiscardUnknown()
- func (m *Metrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Metrics) XXX_Merge(src proto.Message)
- func (m *Metrics) XXX_Size() int
- func (m *Metrics) XXX_Unmarshal(b []byte) error
- type Usage
- func (*Usage) Descriptor() ([]byte, []int)
- func (m *Usage) GetId() string
- func (m *Usage) GetMetrics() *Metrics
- func (m *Usage) GetService() string
- func (m *Usage) GetTimestamp() uint64
- func (m *Usage) GetVersion() string
- func (m *Usage) GetWindow() uint64
- func (*Usage) ProtoMessage()
- func (m *Usage) Reset()
- func (m *Usage) String() string
- func (m *Usage) XXX_DiscardUnknown()
- func (m *Usage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Usage) XXX_Merge(src proto.Message)
- func (m *Usage) XXX_Size() int
- func (m *Usage) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct { // counts such as requests, services, etc Count map[string]uint64 `` /* 152-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Metrics) Descriptor ¶
func (*Metrics) ProtoMessage ¶
func (*Metrics) ProtoMessage()
func (*Metrics) XXX_DiscardUnknown ¶
func (m *Metrics) XXX_DiscardUnknown()
func (*Metrics) XXX_Marshal ¶
func (*Metrics) XXX_Unmarshal ¶
type Usage ¶
type Usage struct { // service name Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` // version of service Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // unique service id Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` // unix timestamp of report Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // window of report in seconds Window uint64 `protobuf:"varint,5,opt,name=window,proto3" json:"window,omitempty"` // usage metrics Metrics *Metrics `protobuf:"bytes,6,opt,name=metrics,proto3" json:"metrics,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Usage) Descriptor ¶
func (*Usage) GetMetrics ¶
func (*Usage) GetService ¶
func (*Usage) GetTimestamp ¶
func (*Usage) GetVersion ¶
func (*Usage) ProtoMessage ¶
func (*Usage) ProtoMessage()
func (*Usage) XXX_DiscardUnknown ¶
func (m *Usage) XXX_DiscardUnknown()
func (*Usage) XXX_Marshal ¶
func (*Usage) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.