collector

package
v0.0.0-...-b63aa1a Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterService

func RegisterService(s giraffe_micro.Server, srv Service)

Types

type Client

type Client interface {
	GetList(ctx context.Context, in *GetListRequest) (*GetListResponse, error)
}

Client is the client API for collector service.

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

func NewClient

func NewClient(c giraffe_micro.Client) Client

type GetListRequest

type GetListRequest struct {
	//
	//指定查询的表
	Table string `protobuf:"bytes,1,opt,name=table,proto3" json:"table" form:"table"`
	//
	//指定查询的指标名
	XSelect__ []string `protobuf:"bytes,2,rep,name=__select__,json=Select,proto3" json:"__select__" form:"__select__"`
	//
	//指定分组字段
	XGroupby__ string `protobuf:"bytes,3,opt,name=__groupby__,json=Groupby,proto3" json:"__groupby__" form:"__groupby__"`
	//
	//开始时间
	St string `protobuf:"bytes,4,opt,name=st,proto3" json:"st" form:"st"`
	//
	//结束时间
	Et string `protobuf:"bytes,5,opt,name=et,proto3" json:"et" form:"et"`
	//
	//时间范围
	Timerange string `protobuf:"bytes,6,opt,name=timerange,proto3" json:"timerange" form:"timerange"`
	//
	//页码
	Page int32 `protobuf:"varint,7,opt,name=page,proto3" json:"page" form:"page"`
	//
	//页大小
	PageSize             int32    `protobuf:"varint,8,opt,name=page_size,json=pageSize,proto3" json:"page_size" form:"page_size"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

GetList请求

func (*GetListRequest) Descriptor

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

func (*GetListRequest) GetEt

func (m *GetListRequest) GetEt() string

func (*GetListRequest) GetPage

func (m *GetListRequest) GetPage() int32

func (*GetListRequest) GetPageSize

func (m *GetListRequest) GetPageSize() int32

func (*GetListRequest) GetSt

func (m *GetListRequest) GetSt() string

func (*GetListRequest) GetTable

func (m *GetListRequest) GetTable() string

func (*GetListRequest) GetTimerange

func (m *GetListRequest) GetTimerange() string

func (*GetListRequest) GetXGroupby__

func (m *GetListRequest) GetXGroupby__() string

func (*GetListRequest) GetXSelect__

func (m *GetListRequest) GetXSelect__() []string

func (*GetListRequest) ProtoMessage

func (*GetListRequest) ProtoMessage()

func (*GetListRequest) Reset

func (m *GetListRequest) Reset()

func (*GetListRequest) String

func (m *GetListRequest) String() string

func (*GetListRequest) Validate

func (this *GetListRequest) Validate() error

func (*GetListRequest) XXX_DiscardUnknown

func (m *GetListRequest) XXX_DiscardUnknown()

func (*GetListRequest) XXX_Marshal

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

func (*GetListRequest) XXX_Merge

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

func (*GetListRequest) XXX_Size

func (m *GetListRequest) XXX_Size() int

func (*GetListRequest) XXX_Unmarshal

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

type GetListResponse

type GetListResponse struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//消息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg" form:"msg"`
	//
	//数据
	Data []*types.Struct `protobuf:"bytes,3,rep,name=data,proto3" json:"data" form:"data"`
	//
	//页码
	Page int32 `protobuf:"varint,4,opt,name=page,proto3" json:"page" form:"page"`
	//
	//分页大小
	PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size" form:"page_size"`
	//
	//总数
	Total                int32    `protobuf:"varint,6,opt,name=total,proto3" json:"total" form:"total"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

GetList返回

func (*GetListResponse) Descriptor

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

func (*GetListResponse) GetCode

func (m *GetListResponse) GetCode() int32

func (*GetListResponse) GetData

func (m *GetListResponse) GetData() []*types.Struct

func (*GetListResponse) GetMsg

func (m *GetListResponse) GetMsg() string

func (*GetListResponse) GetPage

func (m *GetListResponse) GetPage() int32

func (*GetListResponse) GetPageSize

func (m *GetListResponse) GetPageSize() int32

func (*GetListResponse) GetTotal

func (m *GetListResponse) GetTotal() int32

func (*GetListResponse) ProtoMessage

func (*GetListResponse) ProtoMessage()

func (*GetListResponse) Reset

func (m *GetListResponse) Reset()

func (*GetListResponse) String

func (m *GetListResponse) String() string

func (*GetListResponse) Validate

func (this *GetListResponse) Validate() error

func (*GetListResponse) XXX_DiscardUnknown

func (m *GetListResponse) XXX_DiscardUnknown()

func (*GetListResponse) XXX_Marshal

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

func (*GetListResponse) XXX_Merge

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

func (*GetListResponse) XXX_Size

func (m *GetListResponse) XXX_Size() int

func (*GetListResponse) XXX_Unmarshal

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

type GetListResponseWrapper

type GetListResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *GetListResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

GetListApi返回

func (*GetListResponseWrapper) Descriptor

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

func (*GetListResponseWrapper) GetCode

func (m *GetListResponseWrapper) GetCode() int32

func (*GetListResponseWrapper) GetCodeExplain

func (m *GetListResponseWrapper) GetCodeExplain() string

func (*GetListResponseWrapper) GetData

func (*GetListResponseWrapper) GetError

func (m *GetListResponseWrapper) GetError() string

func (*GetListResponseWrapper) ProtoMessage

func (*GetListResponseWrapper) ProtoMessage()

func (*GetListResponseWrapper) Reset

func (m *GetListResponseWrapper) Reset()

func (*GetListResponseWrapper) String

func (m *GetListResponseWrapper) String() string

func (*GetListResponseWrapper) Validate

func (this *GetListResponseWrapper) Validate() error

func (*GetListResponseWrapper) XXX_DiscardUnknown

func (m *GetListResponseWrapper) XXX_DiscardUnknown()

func (*GetListResponseWrapper) XXX_Marshal

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

func (*GetListResponseWrapper) XXX_Merge

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

func (*GetListResponseWrapper) XXX_Size

func (m *GetListResponseWrapper) XXX_Size() int

func (*GetListResponseWrapper) XXX_Unmarshal

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

type Service

type Service interface {
	GetList(context.Context, *GetListRequest) (*GetListResponse, error)
}

Service is the server API for collector service.

Jump to

Keyboard shortcuts

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