Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterICOServiceHTTPServer(s *http.Server, srv ICOServiceHTTPServer)
- func RegisterICOServiceServer(s grpc.ServiceRegistrar, srv ICOServiceServer)
- type AddICOCouponRequest
- func (*AddICOCouponRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddICOCouponRequest) GetCashback() string
- func (x *AddICOCouponRequest) GetCoupon() string
- func (x *AddICOCouponRequest) GetReward() string
- func (x *AddICOCouponRequest) GetUserId() string
- func (*AddICOCouponRequest) ProtoMessage()
- func (x *AddICOCouponRequest) ProtoReflect() protoreflect.Message
- func (x *AddICOCouponRequest) Reset()
- func (x *AddICOCouponRequest) String() string
- type Coupon
- func (*Coupon) Descriptor() ([]byte, []int)deprecated
- func (x *Coupon) GetCashBack() string
- func (x *Coupon) GetCoupon() string
- func (x *Coupon) GetReward() string
- func (x *Coupon) GetUserId() string
- func (*Coupon) ProtoMessage()
- func (x *Coupon) ProtoReflect() protoreflect.Message
- func (x *Coupon) Reset()
- func (x *Coupon) String() string
- type GetBuyICOUserHistoryRequest
- func (*GetBuyICOUserHistoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBuyICOUserHistoryRequest) GetLimit() int32
- func (x *GetBuyICOUserHistoryRequest) GetNext() string
- func (*GetBuyICOUserHistoryRequest) ProtoMessage()
- func (x *GetBuyICOUserHistoryRequest) ProtoReflect() protoreflect.Message
- func (x *GetBuyICOUserHistoryRequest) Reset()
- func (x *GetBuyICOUserHistoryRequest) String() string
- type GetBuyICOUserHistoryResponse
- func (*GetBuyICOUserHistoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBuyICOUserHistoryResponse) GetCode() int64
- func (x *GetBuyICOUserHistoryResponse) GetData() []*GetBuyICOUserHistoryResponse_Data
- func (x *GetBuyICOUserHistoryResponse) GetMsg() string
- func (x *GetBuyICOUserHistoryResponse) GetMsgKey() string
- func (x *GetBuyICOUserHistoryResponse) GetNext() string
- func (x *GetBuyICOUserHistoryResponse) GetTotal() int32
- func (*GetBuyICOUserHistoryResponse) ProtoMessage()
- func (x *GetBuyICOUserHistoryResponse) ProtoReflect() protoreflect.Message
- func (x *GetBuyICOUserHistoryResponse) Reset()
- func (x *GetBuyICOUserHistoryResponse) String() string
- type GetBuyICOUserHistoryResponse_Data
- func (*GetBuyICOUserHistoryResponse_Data) Descriptor() ([]byte, []int)deprecated
- func (x *GetBuyICOUserHistoryResponse_Data) GetEmail() string
- func (x *GetBuyICOUserHistoryResponse_Data) GetFullName() string
- func (x *GetBuyICOUserHistoryResponse_Data) GetNumToken() string
- func (x *GetBuyICOUserHistoryResponse_Data) GetOrder() int32
- func (x *GetBuyICOUserHistoryResponse_Data) GetStack() string
- func (x *GetBuyICOUserHistoryResponse_Data) GetTime() string
- func (*GetBuyICOUserHistoryResponse_Data) ProtoMessage()
- func (x *GetBuyICOUserHistoryResponse_Data) ProtoReflect() protoreflect.Message
- func (x *GetBuyICOUserHistoryResponse_Data) Reset()
- func (x *GetBuyICOUserHistoryResponse_Data) String() string
- type GetCouponRequest
- type GetCouponResponse
- func (*GetCouponResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCouponResponse) GetCode() int64
- func (x *GetCouponResponse) GetData() *Coupon
- func (x *GetCouponResponse) GetMsg() string
- func (x *GetCouponResponse) GetMsgKey() string
- func (*GetCouponResponse) ProtoMessage()
- func (x *GetCouponResponse) ProtoReflect() protoreflect.Message
- func (x *GetCouponResponse) Reset()
- func (x *GetCouponResponse) String() string
- type GetCurrentRoundResponse
- func (*GetCurrentRoundResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCurrentRoundResponse) GetCode() int64
- func (x *GetCurrentRoundResponse) GetData() *ICORound
- func (x *GetCurrentRoundResponse) GetMsg() string
- func (x *GetCurrentRoundResponse) GetMsgKey() string
- func (*GetCurrentRoundResponse) ProtoMessage()
- func (x *GetCurrentRoundResponse) ProtoReflect() protoreflect.Message
- func (x *GetCurrentRoundResponse) Reset()
- func (x *GetCurrentRoundResponse) String() string
- type GetICOInfoResponse
- func (*GetICOInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetICOInfoResponse) GetCode() int64
- func (x *GetICOInfoResponse) GetData() []*ICOInfo
- func (x *GetICOInfoResponse) GetMsg() string
- func (x *GetICOInfoResponse) GetMsgKey() string
- func (*GetICOInfoResponse) ProtoMessage()
- func (x *GetICOInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetICOInfoResponse) Reset()
- func (x *GetICOInfoResponse) String() string
- type ICOInfo
- func (*ICOInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ICOInfo) GetNumToken() string
- func (x *ICOInfo) GetPrice() string
- func (x *ICOInfo) GetPriceGap() string
- func (x *ICOInfo) GetRoundId() int32
- func (x *ICOInfo) GetRoundName() string
- func (*ICOInfo) ProtoMessage()
- func (x *ICOInfo) ProtoReflect() protoreflect.Message
- func (x *ICOInfo) Reset()
- func (x *ICOInfo) String() string
- type ICORound
- func (*ICORound) Descriptor() ([]byte, []int)deprecated
- func (x *ICORound) GetBoughtToken() string
- func (x *ICORound) GetEndAt() *timestamppb.Timestamp
- func (x *ICORound) GetPrice() string
- func (x *ICORound) GetRoundId() int32
- func (x *ICORound) GetRoundName() string
- func (x *ICORound) GetSubRound() int32
- func (x *ICORound) GetTotalToken() string
- func (*ICORound) ProtoMessage()
- func (x *ICORound) ProtoReflect() protoreflect.Message
- func (x *ICORound) Reset()
- func (x *ICORound) String() string
- type ICOServiceClient
- type ICOServiceHTTPClient
- type ICOServiceHTTPClientImpl
- func (c *ICOServiceHTTPClientImpl) AddICOCoupon(ctx context.Context, in *AddICOCouponRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ICOServiceHTTPClientImpl) GetBuyICOUserHistory(ctx context.Context, in *GetBuyICOUserHistoryRequest, opts ...http.CallOption) (*GetBuyICOUserHistoryResponse, error)
- func (c *ICOServiceHTTPClientImpl) GetCoupon(ctx context.Context, in *GetCouponRequest, opts ...http.CallOption) (*GetCouponResponse, error)
- func (c *ICOServiceHTTPClientImpl) GetCurrentRound(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetCurrentRoundResponse, error)
- func (c *ICOServiceHTTPClientImpl) GetICOInfo(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetICOInfoResponse, error)
- type ICOServiceHTTPServer
- type ICOServiceServer
- type UnimplementedICOServiceServer
- func (UnimplementedICOServiceServer) AddICOCoupon(context.Context, *AddICOCouponRequest) (*emptypb.Empty, error)
- func (UnimplementedICOServiceServer) GetBuyICOUserHistory(context.Context, *GetBuyICOUserHistoryRequest) (*GetBuyICOUserHistoryResponse, error)
- func (UnimplementedICOServiceServer) GetCoupon(context.Context, *GetCouponRequest) (*GetCouponResponse, error)
- func (UnimplementedICOServiceServer) GetCurrentRound(context.Context, *emptypb.Empty) (*GetCurrentRoundResponse, error)
- func (UnimplementedICOServiceServer) GetICOInfo(context.Context, *emptypb.Empty) (*GetICOInfoResponse, error)
- type UnsafeICOServiceServer
Constants ¶
const ( ICOService_GetICOInfo_FullMethodName = "/ico.v1.ICOService/GetICOInfo" ICOService_GetBuyICOUserHistory_FullMethodName = "/ico.v1.ICOService/GetBuyICOUserHistory" ICOService_GetCurrentRound_FullMethodName = "/ico.v1.ICOService/GetCurrentRound" ICOService_GetCoupon_FullMethodName = "/ico.v1.ICOService/GetCoupon" ICOService_AddICOCoupon_FullMethodName = "/ico.v1.ICOService/AddICOCoupon" )
const OperationICOServiceAddICOCoupon = "/ico.v1.ICOService/AddICOCoupon"
const OperationICOServiceGetBuyICOUserHistory = "/ico.v1.ICOService/GetBuyICOUserHistory"
const OperationICOServiceGetCoupon = "/ico.v1.ICOService/GetCoupon"
const OperationICOServiceGetCurrentRound = "/ico.v1.ICOService/GetCurrentRound"
const OperationICOServiceGetICOInfo = "/ico.v1.ICOService/GetICOInfo"
Variables ¶
var File_ico_v1_ico_proto protoreflect.FileDescriptor
var ICOService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ico.v1.ICOService", HandlerType: (*ICOServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetICOInfo", Handler: _ICOService_GetICOInfo_Handler, }, { MethodName: "GetBuyICOUserHistory", Handler: _ICOService_GetBuyICOUserHistory_Handler, }, { MethodName: "GetCurrentRound", Handler: _ICOService_GetCurrentRound_Handler, }, { MethodName: "GetCoupon", Handler: _ICOService_GetCoupon_Handler, }, { MethodName: "AddICOCoupon", Handler: _ICOService_AddICOCoupon_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "ico/v1/ico.proto", }
ICOService_ServiceDesc is the grpc.ServiceDesc for ICOService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterICOServiceHTTPServer ¶
func RegisterICOServiceHTTPServer(s *http.Server, srv ICOServiceHTTPServer)
func RegisterICOServiceServer ¶
func RegisterICOServiceServer(s grpc.ServiceRegistrar, srv ICOServiceServer)
Types ¶
type AddICOCouponRequest ¶
type AddICOCouponRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Coupon string `protobuf:"bytes,2,opt,name=coupon,proto3" json:"coupon,omitempty"` Reward string `protobuf:"bytes,3,opt,name=reward,proto3" json:"reward,omitempty"` Cashback string `protobuf:"bytes,4,opt,name=cashback,proto3" json:"cashback,omitempty"` // contains filtered or unexported fields }
func (*AddICOCouponRequest) Descriptor
deprecated
func (*AddICOCouponRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddICOCouponRequest.ProtoReflect.Descriptor instead.
func (*AddICOCouponRequest) GetCashback ¶
func (x *AddICOCouponRequest) GetCashback() string
func (*AddICOCouponRequest) GetCoupon ¶
func (x *AddICOCouponRequest) GetCoupon() string
func (*AddICOCouponRequest) GetReward ¶
func (x *AddICOCouponRequest) GetReward() string
func (*AddICOCouponRequest) GetUserId ¶
func (x *AddICOCouponRequest) GetUserId() string
func (*AddICOCouponRequest) ProtoMessage ¶
func (*AddICOCouponRequest) ProtoMessage()
func (*AddICOCouponRequest) ProtoReflect ¶
func (x *AddICOCouponRequest) ProtoReflect() protoreflect.Message
func (*AddICOCouponRequest) Reset ¶
func (x *AddICOCouponRequest) Reset()
func (*AddICOCouponRequest) String ¶
func (x *AddICOCouponRequest) String() string
type Coupon ¶
type Coupon struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Coupon string `protobuf:"bytes,2,opt,name=coupon,proto3" json:"coupon,omitempty"` Reward string `protobuf:"bytes,3,opt,name=reward,proto3" json:"reward,omitempty"` CashBack string `protobuf:"bytes,4,opt,name=cash_back,json=cashBack,proto3" json:"cash_back,omitempty"` // contains filtered or unexported fields }
func (*Coupon) Descriptor
deprecated
func (*Coupon) GetCashBack ¶
func (*Coupon) ProtoMessage ¶
func (*Coupon) ProtoMessage()
func (*Coupon) ProtoReflect ¶
func (x *Coupon) ProtoReflect() protoreflect.Message
type GetBuyICOUserHistoryRequest ¶
type GetBuyICOUserHistoryRequest struct { Next string `protobuf:"bytes,1,opt,name=next,proto3" json:"next,omitempty"` Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*GetBuyICOUserHistoryRequest) Descriptor
deprecated
func (*GetBuyICOUserHistoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBuyICOUserHistoryRequest.ProtoReflect.Descriptor instead.
func (*GetBuyICOUserHistoryRequest) GetLimit ¶
func (x *GetBuyICOUserHistoryRequest) GetLimit() int32
func (*GetBuyICOUserHistoryRequest) GetNext ¶
func (x *GetBuyICOUserHistoryRequest) GetNext() string
func (*GetBuyICOUserHistoryRequest) ProtoMessage ¶
func (*GetBuyICOUserHistoryRequest) ProtoMessage()
func (*GetBuyICOUserHistoryRequest) ProtoReflect ¶
func (x *GetBuyICOUserHistoryRequest) ProtoReflect() protoreflect.Message
func (*GetBuyICOUserHistoryRequest) Reset ¶
func (x *GetBuyICOUserHistoryRequest) Reset()
func (*GetBuyICOUserHistoryRequest) String ¶
func (x *GetBuyICOUserHistoryRequest) String() string
type GetBuyICOUserHistoryResponse ¶
type GetBuyICOUserHistoryResponse struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` MsgKey string `protobuf:"bytes,3,opt,name=msg_key,json=msgKey,proto3" json:"msg_key,omitempty"` Total int32 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` Data []*GetBuyICOUserHistoryResponse_Data `protobuf:"bytes,5,rep,name=data,proto3" json:"data,omitempty"` Next string `protobuf:"bytes,6,opt,name=next,proto3" json:"next,omitempty"` // contains filtered or unexported fields }
func (*GetBuyICOUserHistoryResponse) Descriptor
deprecated
func (*GetBuyICOUserHistoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBuyICOUserHistoryResponse.ProtoReflect.Descriptor instead.
func (*GetBuyICOUserHistoryResponse) GetCode ¶
func (x *GetBuyICOUserHistoryResponse) GetCode() int64
func (*GetBuyICOUserHistoryResponse) GetData ¶
func (x *GetBuyICOUserHistoryResponse) GetData() []*GetBuyICOUserHistoryResponse_Data
func (*GetBuyICOUserHistoryResponse) GetMsg ¶
func (x *GetBuyICOUserHistoryResponse) GetMsg() string
func (*GetBuyICOUserHistoryResponse) GetMsgKey ¶
func (x *GetBuyICOUserHistoryResponse) GetMsgKey() string
func (*GetBuyICOUserHistoryResponse) GetNext ¶
func (x *GetBuyICOUserHistoryResponse) GetNext() string
func (*GetBuyICOUserHistoryResponse) GetTotal ¶
func (x *GetBuyICOUserHistoryResponse) GetTotal() int32
func (*GetBuyICOUserHistoryResponse) ProtoMessage ¶
func (*GetBuyICOUserHistoryResponse) ProtoMessage()
func (*GetBuyICOUserHistoryResponse) ProtoReflect ¶
func (x *GetBuyICOUserHistoryResponse) ProtoReflect() protoreflect.Message
func (*GetBuyICOUserHistoryResponse) Reset ¶
func (x *GetBuyICOUserHistoryResponse) Reset()
func (*GetBuyICOUserHistoryResponse) String ¶
func (x *GetBuyICOUserHistoryResponse) String() string
type GetBuyICOUserHistoryResponse_Data ¶
type GetBuyICOUserHistoryResponse_Data struct { FullName string `protobuf:"bytes,1,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` NumToken string `protobuf:"bytes,3,opt,name=num_token,json=numToken,proto3" json:"num_token,omitempty"` Order int32 `protobuf:"varint,4,opt,name=order,proto3" json:"order,omitempty"` Time string `protobuf:"bytes,5,opt,name=time,proto3" json:"time,omitempty"` Stack string `protobuf:"bytes,6,opt,name=stack,proto3" json:"stack,omitempty"` // contains filtered or unexported fields }
func (*GetBuyICOUserHistoryResponse_Data) Descriptor
deprecated
func (*GetBuyICOUserHistoryResponse_Data) Descriptor() ([]byte, []int)
Deprecated: Use GetBuyICOUserHistoryResponse_Data.ProtoReflect.Descriptor instead.
func (*GetBuyICOUserHistoryResponse_Data) GetEmail ¶
func (x *GetBuyICOUserHistoryResponse_Data) GetEmail() string
func (*GetBuyICOUserHistoryResponse_Data) GetFullName ¶
func (x *GetBuyICOUserHistoryResponse_Data) GetFullName() string
func (*GetBuyICOUserHistoryResponse_Data) GetNumToken ¶
func (x *GetBuyICOUserHistoryResponse_Data) GetNumToken() string
func (*GetBuyICOUserHistoryResponse_Data) GetOrder ¶
func (x *GetBuyICOUserHistoryResponse_Data) GetOrder() int32
func (*GetBuyICOUserHistoryResponse_Data) GetStack ¶
func (x *GetBuyICOUserHistoryResponse_Data) GetStack() string
func (*GetBuyICOUserHistoryResponse_Data) GetTime ¶
func (x *GetBuyICOUserHistoryResponse_Data) GetTime() string
func (*GetBuyICOUserHistoryResponse_Data) ProtoMessage ¶
func (*GetBuyICOUserHistoryResponse_Data) ProtoMessage()
func (*GetBuyICOUserHistoryResponse_Data) ProtoReflect ¶
func (x *GetBuyICOUserHistoryResponse_Data) ProtoReflect() protoreflect.Message
func (*GetBuyICOUserHistoryResponse_Data) Reset ¶
func (x *GetBuyICOUserHistoryResponse_Data) Reset()
func (*GetBuyICOUserHistoryResponse_Data) String ¶
func (x *GetBuyICOUserHistoryResponse_Data) String() string
type GetCouponRequest ¶
type GetCouponRequest struct { Coupon string `protobuf:"bytes,1,opt,name=coupon,proto3" json:"coupon,omitempty"` // contains filtered or unexported fields }
func (*GetCouponRequest) Descriptor
deprecated
func (*GetCouponRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCouponRequest.ProtoReflect.Descriptor instead.
func (*GetCouponRequest) GetCoupon ¶
func (x *GetCouponRequest) GetCoupon() string
func (*GetCouponRequest) ProtoMessage ¶
func (*GetCouponRequest) ProtoMessage()
func (*GetCouponRequest) ProtoReflect ¶
func (x *GetCouponRequest) ProtoReflect() protoreflect.Message
func (*GetCouponRequest) Reset ¶
func (x *GetCouponRequest) Reset()
func (*GetCouponRequest) String ¶
func (x *GetCouponRequest) String() string
type GetCouponResponse ¶
type GetCouponResponse struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` MsgKey string `protobuf:"bytes,3,opt,name=msg_key,json=msgKey,proto3" json:"msg_key,omitempty"` Data *Coupon `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetCouponResponse) Descriptor
deprecated
func (*GetCouponResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCouponResponse.ProtoReflect.Descriptor instead.
func (*GetCouponResponse) GetCode ¶
func (x *GetCouponResponse) GetCode() int64
func (*GetCouponResponse) GetData ¶
func (x *GetCouponResponse) GetData() *Coupon
func (*GetCouponResponse) GetMsg ¶
func (x *GetCouponResponse) GetMsg() string
func (*GetCouponResponse) GetMsgKey ¶
func (x *GetCouponResponse) GetMsgKey() string
func (*GetCouponResponse) ProtoMessage ¶
func (*GetCouponResponse) ProtoMessage()
func (*GetCouponResponse) ProtoReflect ¶
func (x *GetCouponResponse) ProtoReflect() protoreflect.Message
func (*GetCouponResponse) Reset ¶
func (x *GetCouponResponse) Reset()
func (*GetCouponResponse) String ¶
func (x *GetCouponResponse) String() string
type GetCurrentRoundResponse ¶
type GetCurrentRoundResponse struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` MsgKey string `protobuf:"bytes,3,opt,name=msg_key,json=msgKey,proto3" json:"msg_key,omitempty"` Data *ICORound `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetCurrentRoundResponse) Descriptor
deprecated
func (*GetCurrentRoundResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCurrentRoundResponse.ProtoReflect.Descriptor instead.
func (*GetCurrentRoundResponse) GetCode ¶
func (x *GetCurrentRoundResponse) GetCode() int64
func (*GetCurrentRoundResponse) GetData ¶
func (x *GetCurrentRoundResponse) GetData() *ICORound
func (*GetCurrentRoundResponse) GetMsg ¶
func (x *GetCurrentRoundResponse) GetMsg() string
func (*GetCurrentRoundResponse) GetMsgKey ¶
func (x *GetCurrentRoundResponse) GetMsgKey() string
func (*GetCurrentRoundResponse) ProtoMessage ¶
func (*GetCurrentRoundResponse) ProtoMessage()
func (*GetCurrentRoundResponse) ProtoReflect ¶
func (x *GetCurrentRoundResponse) ProtoReflect() protoreflect.Message
func (*GetCurrentRoundResponse) Reset ¶
func (x *GetCurrentRoundResponse) Reset()
func (*GetCurrentRoundResponse) String ¶
func (x *GetCurrentRoundResponse) String() string
type GetICOInfoResponse ¶
type GetICOInfoResponse struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` MsgKey string `protobuf:"bytes,3,opt,name=msg_key,json=msgKey,proto3" json:"msg_key,omitempty"` Data []*ICOInfo `protobuf:"bytes,4,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetICOInfoResponse) Descriptor
deprecated
func (*GetICOInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetICOInfoResponse.ProtoReflect.Descriptor instead.
func (*GetICOInfoResponse) GetCode ¶
func (x *GetICOInfoResponse) GetCode() int64
func (*GetICOInfoResponse) GetData ¶
func (x *GetICOInfoResponse) GetData() []*ICOInfo
func (*GetICOInfoResponse) GetMsg ¶
func (x *GetICOInfoResponse) GetMsg() string
func (*GetICOInfoResponse) GetMsgKey ¶
func (x *GetICOInfoResponse) GetMsgKey() string
func (*GetICOInfoResponse) ProtoMessage ¶
func (*GetICOInfoResponse) ProtoMessage()
func (*GetICOInfoResponse) ProtoReflect ¶
func (x *GetICOInfoResponse) ProtoReflect() protoreflect.Message
func (*GetICOInfoResponse) Reset ¶
func (x *GetICOInfoResponse) Reset()
func (*GetICOInfoResponse) String ¶
func (x *GetICOInfoResponse) String() string
type ICOInfo ¶
type ICOInfo struct { RoundId int32 `protobuf:"varint,1,opt,name=round_id,json=roundId,proto3" json:"round_id,omitempty"` RoundName string `protobuf:"bytes,2,opt,name=round_name,json=roundName,proto3" json:"round_name,omitempty"` Price string `protobuf:"bytes,3,opt,name=price,proto3" json:"price,omitempty"` NumToken string `protobuf:"bytes,4,opt,name=num_token,json=numToken,proto3" json:"num_token,omitempty"` PriceGap string `protobuf:"bytes,5,opt,name=price_gap,json=priceGap,proto3" json:"price_gap,omitempty"` // contains filtered or unexported fields }
func (*ICOInfo) Descriptor
deprecated
func (*ICOInfo) GetNumToken ¶
func (*ICOInfo) GetPriceGap ¶
func (*ICOInfo) GetRoundId ¶
func (*ICOInfo) GetRoundName ¶
func (*ICOInfo) ProtoMessage ¶
func (*ICOInfo) ProtoMessage()
func (*ICOInfo) ProtoReflect ¶
func (x *ICOInfo) ProtoReflect() protoreflect.Message
type ICORound ¶
type ICORound struct { RoundId int32 `protobuf:"varint,1,opt,name=round_id,json=roundId,proto3" json:"round_id,omitempty"` RoundName string `protobuf:"bytes,2,opt,name=round_name,json=roundName,proto3" json:"round_name,omitempty"` SubRound int32 `protobuf:"varint,3,opt,name=sub_round,json=subRound,proto3" json:"sub_round,omitempty"` Price string `protobuf:"bytes,4,opt,name=price,proto3" json:"price,omitempty"` BoughtToken string `protobuf:"bytes,5,opt,name=bought_token,json=boughtToken,proto3" json:"bought_token,omitempty"` TotalToken string `protobuf:"bytes,6,opt,name=total_token,json=totalToken,proto3" json:"total_token,omitempty"` EndAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=end_at,json=endAt,proto3" json:"end_at,omitempty"` // contains filtered or unexported fields }
func (*ICORound) Descriptor
deprecated
func (*ICORound) GetBoughtToken ¶
func (*ICORound) GetEndAt ¶
func (x *ICORound) GetEndAt() *timestamppb.Timestamp
func (*ICORound) GetRoundId ¶
func (*ICORound) GetRoundName ¶
func (*ICORound) GetSubRound ¶
func (*ICORound) GetTotalToken ¶
func (*ICORound) ProtoMessage ¶
func (*ICORound) ProtoMessage()
func (*ICORound) ProtoReflect ¶
func (x *ICORound) ProtoReflect() protoreflect.Message
type ICOServiceClient ¶
type ICOServiceClient interface { // Sends a greeting GetICOInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetICOInfoResponse, error) GetBuyICOUserHistory(ctx context.Context, in *GetBuyICOUserHistoryRequest, opts ...grpc.CallOption) (*GetBuyICOUserHistoryResponse, error) GetCurrentRound(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetCurrentRoundResponse, error) GetCoupon(ctx context.Context, in *GetCouponRequest, opts ...grpc.CallOption) (*GetCouponResponse, error) AddICOCoupon(ctx context.Context, in *AddICOCouponRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
ICOServiceClient is the client API for ICOService 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 NewICOServiceClient ¶
func NewICOServiceClient(cc grpc.ClientConnInterface) ICOServiceClient
type ICOServiceHTTPClient ¶
type ICOServiceHTTPClient interface { AddICOCoupon(ctx context.Context, req *AddICOCouponRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) GetBuyICOUserHistory(ctx context.Context, req *GetBuyICOUserHistoryRequest, opts ...http.CallOption) (rsp *GetBuyICOUserHistoryResponse, err error) GetCoupon(ctx context.Context, req *GetCouponRequest, opts ...http.CallOption) (rsp *GetCouponResponse, err error) GetCurrentRound(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetCurrentRoundResponse, err error) GetICOInfo(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetICOInfoResponse, err error) }
func NewICOServiceHTTPClient ¶
func NewICOServiceHTTPClient(client *http.Client) ICOServiceHTTPClient
type ICOServiceHTTPClientImpl ¶
type ICOServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ICOServiceHTTPClientImpl) AddICOCoupon ¶
func (c *ICOServiceHTTPClientImpl) AddICOCoupon(ctx context.Context, in *AddICOCouponRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ICOServiceHTTPClientImpl) GetBuyICOUserHistory ¶
func (c *ICOServiceHTTPClientImpl) GetBuyICOUserHistory(ctx context.Context, in *GetBuyICOUserHistoryRequest, opts ...http.CallOption) (*GetBuyICOUserHistoryResponse, error)
func (*ICOServiceHTTPClientImpl) GetCoupon ¶
func (c *ICOServiceHTTPClientImpl) GetCoupon(ctx context.Context, in *GetCouponRequest, opts ...http.CallOption) (*GetCouponResponse, error)
func (*ICOServiceHTTPClientImpl) GetCurrentRound ¶
func (c *ICOServiceHTTPClientImpl) GetCurrentRound(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetCurrentRoundResponse, error)
func (*ICOServiceHTTPClientImpl) GetICOInfo ¶
func (c *ICOServiceHTTPClientImpl) GetICOInfo(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetICOInfoResponse, error)
type ICOServiceHTTPServer ¶
type ICOServiceHTTPServer interface { AddICOCoupon(context.Context, *AddICOCouponRequest) (*emptypb.Empty, error) GetBuyICOUserHistory(context.Context, *GetBuyICOUserHistoryRequest) (*GetBuyICOUserHistoryResponse, error) GetCoupon(context.Context, *GetCouponRequest) (*GetCouponResponse, error) GetCurrentRound(context.Context, *emptypb.Empty) (*GetCurrentRoundResponse, error) // GetICOInfo Sends a greeting GetICOInfo(context.Context, *emptypb.Empty) (*GetICOInfoResponse, error) }
type ICOServiceServer ¶
type ICOServiceServer interface { // Sends a greeting GetICOInfo(context.Context, *emptypb.Empty) (*GetICOInfoResponse, error) GetBuyICOUserHistory(context.Context, *GetBuyICOUserHistoryRequest) (*GetBuyICOUserHistoryResponse, error) GetCurrentRound(context.Context, *emptypb.Empty) (*GetCurrentRoundResponse, error) GetCoupon(context.Context, *GetCouponRequest) (*GetCouponResponse, error) AddICOCoupon(context.Context, *AddICOCouponRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
ICOServiceServer is the server API for ICOService service. All implementations must embed UnimplementedICOServiceServer for forward compatibility
type UnimplementedICOServiceServer ¶
type UnimplementedICOServiceServer struct { }
UnimplementedICOServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedICOServiceServer) AddICOCoupon ¶
func (UnimplementedICOServiceServer) AddICOCoupon(context.Context, *AddICOCouponRequest) (*emptypb.Empty, error)
func (UnimplementedICOServiceServer) GetBuyICOUserHistory ¶
func (UnimplementedICOServiceServer) GetBuyICOUserHistory(context.Context, *GetBuyICOUserHistoryRequest) (*GetBuyICOUserHistoryResponse, error)
func (UnimplementedICOServiceServer) GetCoupon ¶
func (UnimplementedICOServiceServer) GetCoupon(context.Context, *GetCouponRequest) (*GetCouponResponse, error)
func (UnimplementedICOServiceServer) GetCurrentRound ¶
func (UnimplementedICOServiceServer) GetCurrentRound(context.Context, *emptypb.Empty) (*GetCurrentRoundResponse, error)
func (UnimplementedICOServiceServer) GetICOInfo ¶
func (UnimplementedICOServiceServer) GetICOInfo(context.Context, *emptypb.Empty) (*GetICOInfoResponse, error)
type UnsafeICOServiceServer ¶
type UnsafeICOServiceServer interface {
// contains filtered or unexported methods
}
UnsafeICOServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ICOServiceServer will result in compilation errors.