protos

package
v0.0.0-...-cd92494 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2019 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package protos is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterUserServiceHandler

func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterUserServiceHandler registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterUserServiceHandlerClient

func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error

RegisterUserServiceHandlerClient registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserServiceClient" to call the correct interceptors.

func RegisterUserServiceHandlerFromEndpoint

func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterUserServiceServer

func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)

Types

type BinInfoItem

type BinInfoItem struct {
	BinId                int32    `protobuf:"varint,1,opt,name=bin_id,json=binId,proto3" json:"bin_id,omitempty"`
	Status               int32    `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	Angel                float32  `protobuf:"fixed32,3,opt,name=angel,proto3" json:"angel,omitempty"`
	Temp                 float32  `protobuf:"fixed32,4,opt,name=temp,proto3" json:"temp,omitempty"`
	IpAddress            string   `protobuf:"bytes,5,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

用户获取个人垃圾桶信息

func (*BinInfoItem) Descriptor

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

func (*BinInfoItem) GetAngel

func (m *BinInfoItem) GetAngel() float32

func (*BinInfoItem) GetBinId

func (m *BinInfoItem) GetBinId() int32

func (*BinInfoItem) GetIpAddress

func (m *BinInfoItem) GetIpAddress() string

func (*BinInfoItem) GetStatus

func (m *BinInfoItem) GetStatus() int32

func (*BinInfoItem) GetTemp

func (m *BinInfoItem) GetTemp() float32

func (*BinInfoItem) ProtoMessage

func (*BinInfoItem) ProtoMessage()

func (*BinInfoItem) Reset

func (m *BinInfoItem) Reset()

func (*BinInfoItem) String

func (m *BinInfoItem) String() string

func (*BinInfoItem) XXX_DiscardUnknown

func (m *BinInfoItem) XXX_DiscardUnknown()

func (*BinInfoItem) XXX_Marshal

func (m *BinInfoItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BinInfoItem) XXX_Merge

func (m *BinInfoItem) XXX_Merge(src proto.Message)

func (*BinInfoItem) XXX_Size

func (m *BinInfoItem) XXX_Size() int

func (*BinInfoItem) XXX_Unmarshal

func (m *BinInfoItem) XXX_Unmarshal(b []byte) error

type BinInfoReply

type BinInfoReply struct {
	Sum                  int32          `protobuf:"varint,1,opt,name=sum,proto3" json:"sum,omitempty"`
	BinInfo              []*BinInfoItem `protobuf:"bytes,2,rep,name=bin_info,json=binInfo,proto3" json:"bin_info,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*BinInfoReply) Descriptor

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

func (*BinInfoReply) GetBinInfo

func (m *BinInfoReply) GetBinInfo() []*BinInfoItem

func (*BinInfoReply) GetSum

func (m *BinInfoReply) GetSum() int32

func (*BinInfoReply) ProtoMessage

func (*BinInfoReply) ProtoMessage()

func (*BinInfoReply) Reset

func (m *BinInfoReply) Reset()

func (*BinInfoReply) String

func (m *BinInfoReply) String() string

func (*BinInfoReply) XXX_DiscardUnknown

func (m *BinInfoReply) XXX_DiscardUnknown()

func (*BinInfoReply) XXX_Marshal

func (m *BinInfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BinInfoReply) XXX_Merge

func (m *BinInfoReply) XXX_Merge(src proto.Message)

func (*BinInfoReply) XXX_Size

func (m *BinInfoReply) XXX_Size() int

func (*BinInfoReply) XXX_Unmarshal

func (m *BinInfoReply) XXX_Unmarshal(b []byte) error

type BinStatusReply

type BinStatusReply struct {
	BinStatus            map[string]int32 `` /* 177-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

获取垃圾桶实时状态

func (*BinStatusReply) Descriptor

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

func (*BinStatusReply) GetBinStatus

func (m *BinStatusReply) GetBinStatus() map[string]int32

func (*BinStatusReply) ProtoMessage

func (*BinStatusReply) ProtoMessage()

func (*BinStatusReply) Reset

func (m *BinStatusReply) Reset()

func (*BinStatusReply) String

func (m *BinStatusReply) String() string

func (*BinStatusReply) XXX_DiscardUnknown

func (m *BinStatusReply) XXX_DiscardUnknown()

func (*BinStatusReply) XXX_Marshal

func (m *BinStatusReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BinStatusReply) XXX_Merge

func (m *BinStatusReply) XXX_Merge(src proto.Message)

func (*BinStatusReply) XXX_Size

func (m *BinStatusReply) XXX_Size() int

func (*BinStatusReply) XXX_Unmarshal

func (m *BinStatusReply) XXX_Unmarshal(b []byte) error

type LoginRequest

type LoginRequest struct {
	UserId               string   `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	UserPassword         string   `protobuf:"bytes,2,opt,name=user_password,json=userPassword,proto3" json:"user_password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

登录请求

func (*LoginRequest) Descriptor

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

func (*LoginRequest) GetUserId

func (m *LoginRequest) GetUserId() string

func (*LoginRequest) GetUserPassword

func (m *LoginRequest) GetUserPassword() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) Reset

func (m *LoginRequest) Reset()

func (*LoginRequest) String

func (m *LoginRequest) String() string

func (*LoginRequest) XXX_DiscardUnknown

func (m *LoginRequest) XXX_DiscardUnknown()

func (*LoginRequest) XXX_Marshal

func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoginRequest) XXX_Merge

func (m *LoginRequest) XXX_Merge(src proto.Message)

func (*LoginRequest) XXX_Size

func (m *LoginRequest) XXX_Size() int

func (*LoginRequest) XXX_Unmarshal

func (m *LoginRequest) XXX_Unmarshal(b []byte) error

type Null

type Null struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Null) Descriptor

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

func (*Null) ProtoMessage

func (*Null) ProtoMessage()

func (*Null) Reset

func (m *Null) Reset()

func (*Null) String

func (m *Null) String() string

func (*Null) XXX_DiscardUnknown

func (m *Null) XXX_DiscardUnknown()

func (*Null) XXX_Marshal

func (m *Null) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Null) XXX_Merge

func (m *Null) XXX_Merge(src proto.Message)

func (*Null) XXX_Size

func (m *Null) XXX_Size() int

func (*Null) XXX_Unmarshal

func (m *Null) XXX_Unmarshal(b []byte) error

type RegisterRequest

type RegisterRequest struct {
	UserName             string   `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	UserPassword         string   `protobuf:"bytes,2,opt,name=user_password,json=userPassword,proto3" json:"user_password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

注册请求

func (*RegisterRequest) Descriptor

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

func (*RegisterRequest) GetUserName

func (m *RegisterRequest) GetUserName() string

func (*RegisterRequest) GetUserPassword

func (m *RegisterRequest) GetUserPassword() string

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) Reset

func (m *RegisterRequest) Reset()

func (*RegisterRequest) String

func (m *RegisterRequest) String() string

func (*RegisterRequest) XXX_DiscardUnknown

func (m *RegisterRequest) XXX_DiscardUnknown()

func (*RegisterRequest) XXX_Marshal

func (m *RegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RegisterRequest) XXX_Merge

func (m *RegisterRequest) XXX_Merge(src proto.Message)

func (*RegisterRequest) XXX_Size

func (m *RegisterRequest) XXX_Size() int

func (*RegisterRequest) XXX_Unmarshal

func (m *RegisterRequest) XXX_Unmarshal(b []byte) error

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserServiceServer) GetBinInfo

func (*UnimplementedUserServiceServer) GetBinStatus

func (*UnimplementedUserServiceServer) GetUserInfo

func (*UnimplementedUserServiceServer) GetUserScores

func (*UnimplementedUserServiceServer) UserLogin

func (*UnimplementedUserServiceServer) UserRegister

func (*UnimplementedUserServiceServer) UserUpdate

func (*UnimplementedUserServiceServer) WasteCount

func (*UnimplementedUserServiceServer) WeekWasteCount

type UserId

type UserId struct {
	UserId               string   `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

用户Id

func (*UserId) Descriptor

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

func (*UserId) GetUserId

func (m *UserId) GetUserId() string

func (*UserId) ProtoMessage

func (*UserId) ProtoMessage()

func (*UserId) Reset

func (m *UserId) Reset()

func (*UserId) String

func (m *UserId) String() string

func (*UserId) XXX_DiscardUnknown

func (m *UserId) XXX_DiscardUnknown()

func (*UserId) XXX_Marshal

func (m *UserId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserId) XXX_Merge

func (m *UserId) XXX_Merge(src proto.Message)

func (*UserId) XXX_Size

func (m *UserId) XXX_Size() int

func (*UserId) XXX_Unmarshal

func (m *UserId) XXX_Unmarshal(b []byte) error

type UserInfoReply

type UserInfoReply struct {
	UserId               string   `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	UserName             string   `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	UserPassword         string   `protobuf:"bytes,3,opt,name=user_password,json=userPassword,proto3" json:"user_password,omitempty"`
	UserScore            int32    `protobuf:"varint,4,opt,name=user_score,json=userScore,proto3" json:"user_score,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

查询用户信息响应

func (*UserInfoReply) Descriptor

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

func (*UserInfoReply) GetUserId

func (m *UserInfoReply) GetUserId() string

func (*UserInfoReply) GetUserName

func (m *UserInfoReply) GetUserName() string

func (*UserInfoReply) GetUserPassword

func (m *UserInfoReply) GetUserPassword() string

func (*UserInfoReply) GetUserScore

func (m *UserInfoReply) GetUserScore() int32

func (*UserInfoReply) ProtoMessage

func (*UserInfoReply) ProtoMessage()

func (*UserInfoReply) Reset

func (m *UserInfoReply) Reset()

func (*UserInfoReply) String

func (m *UserInfoReply) String() string

func (*UserInfoReply) XXX_DiscardUnknown

func (m *UserInfoReply) XXX_DiscardUnknown()

func (*UserInfoReply) XXX_Marshal

func (m *UserInfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserInfoReply) XXX_Merge

func (m *UserInfoReply) XXX_Merge(src proto.Message)

func (*UserInfoReply) XXX_Size

func (m *UserInfoReply) XXX_Size() int

func (*UserInfoReply) XXX_Unmarshal

func (m *UserInfoReply) XXX_Unmarshal(b []byte) error

type UserScore

type UserScore struct {
	Ranking              int32    `protobuf:"varint,1,opt,name=ranking,proto3" json:"ranking,omitempty"`
	UserName             string   `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	Score                int32    `protobuf:"varint,3,opt,name=score,proto3" json:"score,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

当前用户垃圾的统计信息响应

func (*UserScore) Descriptor

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

func (*UserScore) GetRanking

func (m *UserScore) GetRanking() int32

func (*UserScore) GetScore

func (m *UserScore) GetScore() int32

func (*UserScore) GetUserName

func (m *UserScore) GetUserName() string

func (*UserScore) ProtoMessage

func (*UserScore) ProtoMessage()

func (*UserScore) Reset

func (m *UserScore) Reset()

func (*UserScore) String

func (m *UserScore) String() string

func (*UserScore) XXX_DiscardUnknown

func (m *UserScore) XXX_DiscardUnknown()

func (*UserScore) XXX_Marshal

func (m *UserScore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserScore) XXX_Merge

func (m *UserScore) XXX_Merge(src proto.Message)

func (*UserScore) XXX_Size

func (m *UserScore) XXX_Size() int

func (*UserScore) XXX_Unmarshal

func (m *UserScore) XXX_Unmarshal(b []byte) error

type UserScoresReply

type UserScoresReply struct {
	UserSum              int32        `protobuf:"varint,1,opt,name=user_sum,json=userSum,proto3" json:"user_sum,omitempty"`
	UserScores           []*UserScore `protobuf:"bytes,2,rep,name=user_scores,json=userScores,proto3" json:"user_scores,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*UserScoresReply) Descriptor

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

func (*UserScoresReply) GetUserScores

func (m *UserScoresReply) GetUserScores() []*UserScore

func (*UserScoresReply) GetUserSum

func (m *UserScoresReply) GetUserSum() int32

func (*UserScoresReply) ProtoMessage

func (*UserScoresReply) ProtoMessage()

func (*UserScoresReply) Reset

func (m *UserScoresReply) Reset()

func (*UserScoresReply) String

func (m *UserScoresReply) String() string

func (*UserScoresReply) XXX_DiscardUnknown

func (m *UserScoresReply) XXX_DiscardUnknown()

func (*UserScoresReply) XXX_Marshal

func (m *UserScoresReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserScoresReply) XXX_Merge

func (m *UserScoresReply) XXX_Merge(src proto.Message)

func (*UserScoresReply) XXX_Size

func (m *UserScoresReply) XXX_Size() int

func (*UserScoresReply) XXX_Unmarshal

func (m *UserScoresReply) XXX_Unmarshal(b []byte) error

type UserServiceClient

type UserServiceClient interface {
	// 用户登录
	UserLogin(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*Null, error)
	// 用户注册
	UserRegister(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*UserId, error)
	// 用户信息修改
	UserUpdate(ctx context.Context, in *UserUpdateRequest, opts ...grpc.CallOption) (*Null, error)
	// 用户信息查询(积分)
	GetUserInfo(ctx context.Context, in *UserId, opts ...grpc.CallOption) (*UserInfoReply, error)
	// 所有用户积分查询
	GetUserScores(ctx context.Context, in *Null, opts ...grpc.CallOption) (*UserScoresReply, error)
	//  用户个人垃圾信息统计查询
	WasteCount(ctx context.Context, in *UserId, opts ...grpc.CallOption) (*WasteCountReply, error)
	//  最近一周用户个人垃圾信息统计查询
	WeekWasteCount(ctx context.Context, in *UserId, opts ...grpc.CallOption) (*WeekWasteCountReply, error)
	// 获取实时垃圾桶状态
	GetBinStatus(ctx context.Context, in *UserId, opts ...grpc.CallOption) (*BinStatusReply, error)
	// 获取实时垃圾桶信息
	GetBinInfo(ctx context.Context, in *UserId, opts ...grpc.CallOption) (*BinInfoReply, error)
}

UserServiceClient is the client API for UserService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewUserServiceClient

func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient

type UserServiceServer

type UserServiceServer interface {
	// 用户登录
	UserLogin(context.Context, *LoginRequest) (*Null, error)
	// 用户注册
	UserRegister(context.Context, *RegisterRequest) (*UserId, error)
	// 用户信息修改
	UserUpdate(context.Context, *UserUpdateRequest) (*Null, error)
	// 用户信息查询(积分)
	GetUserInfo(context.Context, *UserId) (*UserInfoReply, error)
	// 所有用户积分查询
	GetUserScores(context.Context, *Null) (*UserScoresReply, error)
	//  用户个人垃圾信息统计查询
	WasteCount(context.Context, *UserId) (*WasteCountReply, error)
	//  最近一周用户个人垃圾信息统计查询
	WeekWasteCount(context.Context, *UserId) (*WeekWasteCountReply, error)
	// 获取实时垃圾桶状态
	GetBinStatus(context.Context, *UserId) (*BinStatusReply, error)
	// 获取实时垃圾桶信息
	GetBinInfo(context.Context, *UserId) (*BinInfoReply, error)
}

UserServiceServer is the server API for UserService service.

type UserUpdateRequest

type UserUpdateRequest struct {
	UserName             string   `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	UserId               string   `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	UserPassword         string   `protobuf:"bytes,3,opt,name=user_password,json=userPassword,proto3" json:"user_password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

修改用户名或者密码

func (*UserUpdateRequest) Descriptor

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

func (*UserUpdateRequest) GetUserId

func (m *UserUpdateRequest) GetUserId() string

func (*UserUpdateRequest) GetUserName

func (m *UserUpdateRequest) GetUserName() string

func (*UserUpdateRequest) GetUserPassword

func (m *UserUpdateRequest) GetUserPassword() string

func (*UserUpdateRequest) ProtoMessage

func (*UserUpdateRequest) ProtoMessage()

func (*UserUpdateRequest) Reset

func (m *UserUpdateRequest) Reset()

func (*UserUpdateRequest) String

func (m *UserUpdateRequest) String() string

func (*UserUpdateRequest) XXX_DiscardUnknown

func (m *UserUpdateRequest) XXX_DiscardUnknown()

func (*UserUpdateRequest) XXX_Marshal

func (m *UserUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserUpdateRequest) XXX_Merge

func (m *UserUpdateRequest) XXX_Merge(src proto.Message)

func (*UserUpdateRequest) XXX_Size

func (m *UserUpdateRequest) XXX_Size() int

func (*UserUpdateRequest) XXX_Unmarshal

func (m *UserUpdateRequest) XXX_Unmarshal(b []byte) error

type WasteCountReply

type WasteCountReply struct {
	Sum                  int32    `protobuf:"varint,1,opt,name=sum,proto3" json:"sum,omitempty"`
	Type                 []int32  `protobuf:"varint,2,rep,packed,name=type,proto3" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

当前用户垃圾的统计信息响应

func (*WasteCountReply) Descriptor

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

func (*WasteCountReply) GetSum

func (m *WasteCountReply) GetSum() int32

func (*WasteCountReply) GetType

func (m *WasteCountReply) GetType() []int32

func (*WasteCountReply) ProtoMessage

func (*WasteCountReply) ProtoMessage()

func (*WasteCountReply) Reset

func (m *WasteCountReply) Reset()

func (*WasteCountReply) String

func (m *WasteCountReply) String() string

func (*WasteCountReply) XXX_DiscardUnknown

func (m *WasteCountReply) XXX_DiscardUnknown()

func (*WasteCountReply) XXX_Marshal

func (m *WasteCountReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WasteCountReply) XXX_Merge

func (m *WasteCountReply) XXX_Merge(src proto.Message)

func (*WasteCountReply) XXX_Size

func (m *WasteCountReply) XXX_Size() int

func (*WasteCountReply) XXX_Unmarshal

func (m *WasteCountReply) XXX_Unmarshal(b []byte) error

type WeekWasteCountReply

type WeekWasteCountReply struct {
	Sum                  int32    `protobuf:"varint,1,opt,name=sum,proto3" json:"sum,omitempty"`
	Type                 []int32  `protobuf:"varint,2,rep,packed,name=type,proto3" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

过去一周当前用户垃圾的统计信息响应

func (*WeekWasteCountReply) Descriptor

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

func (*WeekWasteCountReply) GetSum

func (m *WeekWasteCountReply) GetSum() int32

func (*WeekWasteCountReply) GetType

func (m *WeekWasteCountReply) GetType() []int32

func (*WeekWasteCountReply) ProtoMessage

func (*WeekWasteCountReply) ProtoMessage()

func (*WeekWasteCountReply) Reset

func (m *WeekWasteCountReply) Reset()

func (*WeekWasteCountReply) String

func (m *WeekWasteCountReply) String() string

func (*WeekWasteCountReply) XXX_DiscardUnknown

func (m *WeekWasteCountReply) XXX_DiscardUnknown()

func (*WeekWasteCountReply) XXX_Marshal

func (m *WeekWasteCountReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WeekWasteCountReply) XXX_Merge

func (m *WeekWasteCountReply) XXX_Merge(src proto.Message)

func (*WeekWasteCountReply) XXX_Size

func (m *WeekWasteCountReply) XXX_Size() int

func (*WeekWasteCountReply) XXX_Unmarshal

func (m *WeekWasteCountReply) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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