v2ray-core: github.com/v2ray/v2ray-core/app/stats/command Index | Files

package command

import "github.com/v2ray/v2ray-core/app/stats/command"

Index

Package Files

command.go command.pb.go command_grpc.pb.go errors.generated.go

Variables

var File_app_stats_command_command_proto protoreflect.FileDescriptor

func RegisterStatsServiceServer Uses

func RegisterStatsServiceServer(s *grpc.Server, srv StatsServiceServer)

type Config Uses

type Config struct {
    // contains filtered or unexported fields
}

func (*Config) Descriptor Uses

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) ProtoMessage Uses

func (*Config) ProtoMessage()

func (*Config) ProtoReflect Uses

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset Uses

func (x *Config) Reset()

func (*Config) String Uses

func (x *Config) String() string

type GetStatsRequest Uses

type GetStatsRequest struct {

    // Name of the stat counter.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Whether or not to reset the counter to fetching its value.
    Reset_ bool `protobuf:"varint,2,opt,name=reset,proto3" json:"reset,omitempty"`
    // contains filtered or unexported fields
}

func (*GetStatsRequest) Descriptor Uses

func (*GetStatsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetStatsRequest.ProtoReflect.Descriptor instead.

func (*GetStatsRequest) GetName Uses

func (x *GetStatsRequest) GetName() string

func (*GetStatsRequest) GetReset_ Uses

func (x *GetStatsRequest) GetReset_() bool

func (*GetStatsRequest) ProtoMessage Uses

func (*GetStatsRequest) ProtoMessage()

func (*GetStatsRequest) ProtoReflect Uses

func (x *GetStatsRequest) ProtoReflect() protoreflect.Message

func (*GetStatsRequest) Reset Uses

func (x *GetStatsRequest) Reset()

func (*GetStatsRequest) String Uses

func (x *GetStatsRequest) String() string

type GetStatsResponse Uses

type GetStatsResponse struct {
    Stat *Stat `protobuf:"bytes,1,opt,name=stat,proto3" json:"stat,omitempty"`
    // contains filtered or unexported fields
}

func (*GetStatsResponse) Descriptor Uses

func (*GetStatsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetStatsResponse.ProtoReflect.Descriptor instead.

func (*GetStatsResponse) GetStat Uses

func (x *GetStatsResponse) GetStat() *Stat

func (*GetStatsResponse) ProtoMessage Uses

func (*GetStatsResponse) ProtoMessage()

func (*GetStatsResponse) ProtoReflect Uses

func (x *GetStatsResponse) ProtoReflect() protoreflect.Message

func (*GetStatsResponse) Reset Uses

func (x *GetStatsResponse) Reset()

func (*GetStatsResponse) String Uses

func (x *GetStatsResponse) String() string

type QueryStatsRequest Uses

type QueryStatsRequest struct {
    Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"`
    Reset_  bool   `protobuf:"varint,2,opt,name=reset,proto3" json:"reset,omitempty"`
    // contains filtered or unexported fields
}

func (*QueryStatsRequest) Descriptor Uses

func (*QueryStatsRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryStatsRequest.ProtoReflect.Descriptor instead.

func (*QueryStatsRequest) GetPattern Uses

func (x *QueryStatsRequest) GetPattern() string

func (*QueryStatsRequest) GetReset_ Uses

func (x *QueryStatsRequest) GetReset_() bool

func (*QueryStatsRequest) ProtoMessage Uses

func (*QueryStatsRequest) ProtoMessage()

func (*QueryStatsRequest) ProtoReflect Uses

func (x *QueryStatsRequest) ProtoReflect() protoreflect.Message

func (*QueryStatsRequest) Reset Uses

func (x *QueryStatsRequest) Reset()

func (*QueryStatsRequest) String Uses

func (x *QueryStatsRequest) String() string

type QueryStatsResponse Uses

type QueryStatsResponse struct {
    Stat []*Stat `protobuf:"bytes,1,rep,name=stat,proto3" json:"stat,omitempty"`
    // contains filtered or unexported fields
}

func (*QueryStatsResponse) Descriptor Uses

func (*QueryStatsResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryStatsResponse.ProtoReflect.Descriptor instead.

func (*QueryStatsResponse) GetStat Uses

func (x *QueryStatsResponse) GetStat() []*Stat

func (*QueryStatsResponse) ProtoMessage Uses

func (*QueryStatsResponse) ProtoMessage()

func (*QueryStatsResponse) ProtoReflect Uses

func (x *QueryStatsResponse) ProtoReflect() protoreflect.Message

func (*QueryStatsResponse) Reset Uses

func (x *QueryStatsResponse) Reset()

func (*QueryStatsResponse) String Uses

func (x *QueryStatsResponse) String() string

type Stat Uses

type Stat struct {
    Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    Value int64  `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
    // contains filtered or unexported fields
}

func (*Stat) Descriptor Uses

func (*Stat) Descriptor() ([]byte, []int)

Deprecated: Use Stat.ProtoReflect.Descriptor instead.

func (*Stat) GetName Uses

func (x *Stat) GetName() string

func (*Stat) GetValue Uses

func (x *Stat) GetValue() int64

func (*Stat) ProtoMessage Uses

func (*Stat) ProtoMessage()

func (*Stat) ProtoReflect Uses

func (x *Stat) ProtoReflect() protoreflect.Message

func (*Stat) Reset Uses

func (x *Stat) Reset()

func (*Stat) String Uses

func (x *Stat) String() string

type StatsServiceClient Uses

type StatsServiceClient interface {
    GetStats(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*GetStatsResponse, error)
    QueryStats(ctx context.Context, in *QueryStatsRequest, opts ...grpc.CallOption) (*QueryStatsResponse, error)
    GetSysStats(ctx context.Context, in *SysStatsRequest, opts ...grpc.CallOption) (*SysStatsResponse, error)
}

StatsServiceClient is the client API for StatsService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewStatsServiceClient Uses

func NewStatsServiceClient(cc grpc.ClientConnInterface) StatsServiceClient

type StatsServiceServer Uses

type StatsServiceServer interface {
    GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error)
    QueryStats(context.Context, *QueryStatsRequest) (*QueryStatsResponse, error)
    GetSysStats(context.Context, *SysStatsRequest) (*SysStatsResponse, error)
    // contains filtered or unexported methods
}

StatsServiceServer is the server API for StatsService service. All implementations must embed UnimplementedStatsServiceServer for forward compatibility

func NewStatsServer Uses

func NewStatsServer(manager feature_stats.Manager) StatsServiceServer

type SysStatsRequest Uses

type SysStatsRequest struct {
    // contains filtered or unexported fields
}

func (*SysStatsRequest) Descriptor Uses

func (*SysStatsRequest) Descriptor() ([]byte, []int)

Deprecated: Use SysStatsRequest.ProtoReflect.Descriptor instead.

func (*SysStatsRequest) ProtoMessage Uses

func (*SysStatsRequest) ProtoMessage()

func (*SysStatsRequest) ProtoReflect Uses

func (x *SysStatsRequest) ProtoReflect() protoreflect.Message

func (*SysStatsRequest) Reset Uses

func (x *SysStatsRequest) Reset()

func (*SysStatsRequest) String Uses

func (x *SysStatsRequest) String() string

type SysStatsResponse Uses

type SysStatsResponse struct {
    NumGoroutine uint32 `protobuf:"varint,1,opt,name=NumGoroutine,proto3" json:"NumGoroutine,omitempty"`
    NumGC        uint32 `protobuf:"varint,2,opt,name=NumGC,proto3" json:"NumGC,omitempty"`
    Alloc        uint64 `protobuf:"varint,3,opt,name=Alloc,proto3" json:"Alloc,omitempty"`
    TotalAlloc   uint64 `protobuf:"varint,4,opt,name=TotalAlloc,proto3" json:"TotalAlloc,omitempty"`
    Sys          uint64 `protobuf:"varint,5,opt,name=Sys,proto3" json:"Sys,omitempty"`
    Mallocs      uint64 `protobuf:"varint,6,opt,name=Mallocs,proto3" json:"Mallocs,omitempty"`
    Frees        uint64 `protobuf:"varint,7,opt,name=Frees,proto3" json:"Frees,omitempty"`
    LiveObjects  uint64 `protobuf:"varint,8,opt,name=LiveObjects,proto3" json:"LiveObjects,omitempty"`
    PauseTotalNs uint64 `protobuf:"varint,9,opt,name=PauseTotalNs,proto3" json:"PauseTotalNs,omitempty"`
    Uptime       uint32 `protobuf:"varint,10,opt,name=Uptime,proto3" json:"Uptime,omitempty"`
    // contains filtered or unexported fields
}

func (*SysStatsResponse) Descriptor Uses

func (*SysStatsResponse) Descriptor() ([]byte, []int)

Deprecated: Use SysStatsResponse.ProtoReflect.Descriptor instead.

func (*SysStatsResponse) GetAlloc Uses

func (x *SysStatsResponse) GetAlloc() uint64

func (*SysStatsResponse) GetFrees Uses

func (x *SysStatsResponse) GetFrees() uint64

func (*SysStatsResponse) GetLiveObjects Uses

func (x *SysStatsResponse) GetLiveObjects() uint64

func (*SysStatsResponse) GetMallocs Uses

func (x *SysStatsResponse) GetMallocs() uint64

func (*SysStatsResponse) GetNumGC Uses

func (x *SysStatsResponse) GetNumGC() uint32

func (*SysStatsResponse) GetNumGoroutine Uses

func (x *SysStatsResponse) GetNumGoroutine() uint32

func (*SysStatsResponse) GetPauseTotalNs Uses

func (x *SysStatsResponse) GetPauseTotalNs() uint64

func (*SysStatsResponse) GetSys Uses

func (x *SysStatsResponse) GetSys() uint64

func (*SysStatsResponse) GetTotalAlloc Uses

func (x *SysStatsResponse) GetTotalAlloc() uint64

func (*SysStatsResponse) GetUptime Uses

func (x *SysStatsResponse) GetUptime() uint32

func (*SysStatsResponse) ProtoMessage Uses

func (*SysStatsResponse) ProtoMessage()

func (*SysStatsResponse) ProtoReflect Uses

func (x *SysStatsResponse) ProtoReflect() protoreflect.Message

func (*SysStatsResponse) Reset Uses

func (x *SysStatsResponse) Reset()

func (*SysStatsResponse) String Uses

func (x *SysStatsResponse) String() string

type UnimplementedStatsServiceServer Uses

type UnimplementedStatsServiceServer struct {
}

UnimplementedStatsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedStatsServiceServer) GetStats Uses

func (UnimplementedStatsServiceServer) GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error)

func (UnimplementedStatsServiceServer) GetSysStats Uses

func (UnimplementedStatsServiceServer) GetSysStats(context.Context, *SysStatsRequest) (*SysStatsResponse, error)

func (UnimplementedStatsServiceServer) QueryStats Uses

func (UnimplementedStatsServiceServer) QueryStats(context.Context, *QueryStatsRequest) (*QueryStatsResponse, error)

type UnsafeStatsServiceServer Uses

type UnsafeStatsServiceServer interface {
    // contains filtered or unexported methods
}

UnsafeStatsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StatsServiceServer will result in compilation errors.

Package command imports 17 packages (graph). Updated 2020-11-28. Refresh now. Tools for package owners.