v2

package
v0.2.157 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ExchangeProposalType_name = map[int32]string{
		0: "EXCHANGE_PROPOSAL_TYPE_BUY",
		1: "EXCHANGE_PROPOSAL_TYPE_SELL",
	}
	ExchangeProposalType_value = map[string]int32{
		"EXCHANGE_PROPOSAL_TYPE_BUY":  0,
		"EXCHANGE_PROPOSAL_TYPE_SELL": 1,
	}
)

Enum value maps for ExchangeProposalType.

View Source
var (
	ExchangeProposal_State_name = map[int32]string{
		0: "STATE_CREATED",
		1: "STATE_ACCEPTED",
		2: "STATE_PROCESSING",
		3: "STATE_FINALISED",
		4: "STATE_REJECTED",
		5: "STATE_CANCELED",
		6: "STATE_FAILED",
	}
	ExchangeProposal_State_value = map[string]int32{
		"STATE_CREATED":    0,
		"STATE_ACCEPTED":   1,
		"STATE_PROCESSING": 2,
		"STATE_FINALISED":  3,
		"STATE_REJECTED":   4,
		"STATE_CANCELED":   5,
		"STATE_FAILED":     6,
	}
)

Enum value maps for ExchangeProposal_State.

View Source
var File_circle_api_seeds_v2_seeds_proto protoreflect.FileDescriptor
View Source
var SeedsAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "seeds_api.v2.SeedsAPI",
	HandlerType: (*SeedsAPIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetExchange",
			Handler:    _SeedsAPI_GetExchange_Handler,
		},
		{
			MethodName: "CreateExchangeProposal",
			Handler:    _SeedsAPI_CreateExchangeProposal_Handler,
		},
		{
			MethodName: "AcceptExchange",
			Handler:    _SeedsAPI_AcceptExchange_Handler,
		},
		{
			MethodName: "RejectExchange",
			Handler:    _SeedsAPI_RejectExchange_Handler,
		},
		{
			MethodName: "CancelExchange",
			Handler:    _SeedsAPI_CancelExchange_Handler,
		},
		{
			MethodName: "GetUserSeeds",
			Handler:    _SeedsAPI_GetUserSeeds_Handler,
		},
		{
			MethodName: "GetUserSeedsInCircle",
			Handler:    _SeedsAPI_GetUserSeedsInCircle_Handler,
		},
		{
			MethodName: "GetCircleSeeds",
			Handler:    _SeedsAPI_GetCircleSeeds_Handler,
		},
		{
			MethodName: "TransferSeeds",
			Handler:    _SeedsAPI_TransferSeeds_Handler,
		},
		{
			MethodName: "GetUserMelons",
			Handler:    _SeedsAPI_GetUserMelons_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "circle-api/seeds/v2/seeds.proto",
}

SeedsAPI_ServiceDesc is the grpc.ServiceDesc for SeedsAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSeedsAPIServer

func RegisterSeedsAPIServer(s grpc.ServiceRegistrar, srv SeedsAPIServer)

Types

type AcceptExchangeRequest

type AcceptExchangeRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*AcceptExchangeRequest) Descriptor deprecated

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

Deprecated: Use AcceptExchangeRequest.ProtoReflect.Descriptor instead.

func (*AcceptExchangeRequest) GetId

func (x *AcceptExchangeRequest) GetId() string

func (*AcceptExchangeRequest) ProtoMessage

func (*AcceptExchangeRequest) ProtoMessage()

func (*AcceptExchangeRequest) ProtoReflect

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

func (*AcceptExchangeRequest) Reset

func (x *AcceptExchangeRequest) Reset()

func (*AcceptExchangeRequest) String

func (x *AcceptExchangeRequest) String() string

type AcceptExchangeResponse

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

func (*AcceptExchangeResponse) Descriptor deprecated

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

Deprecated: Use AcceptExchangeResponse.ProtoReflect.Descriptor instead.

func (*AcceptExchangeResponse) ProtoMessage

func (*AcceptExchangeResponse) ProtoMessage()

func (*AcceptExchangeResponse) ProtoReflect

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

func (*AcceptExchangeResponse) Reset

func (x *AcceptExchangeResponse) Reset()

func (*AcceptExchangeResponse) String

func (x *AcceptExchangeResponse) String() string

type CancelExchangeRequest

type CancelExchangeRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelExchangeRequest) Descriptor deprecated

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

Deprecated: Use CancelExchangeRequest.ProtoReflect.Descriptor instead.

func (*CancelExchangeRequest) GetId

func (x *CancelExchangeRequest) GetId() string

func (*CancelExchangeRequest) ProtoMessage

func (*CancelExchangeRequest) ProtoMessage()

func (*CancelExchangeRequest) ProtoReflect

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

func (*CancelExchangeRequest) Reset

func (x *CancelExchangeRequest) Reset()

func (*CancelExchangeRequest) String

func (x *CancelExchangeRequest) String() string

type CancelExchangeResponse

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

func (*CancelExchangeResponse) Descriptor deprecated

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

Deprecated: Use CancelExchangeResponse.ProtoReflect.Descriptor instead.

func (*CancelExchangeResponse) ProtoMessage

func (*CancelExchangeResponse) ProtoMessage()

func (*CancelExchangeResponse) ProtoReflect

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

func (*CancelExchangeResponse) Reset

func (x *CancelExchangeResponse) Reset()

func (*CancelExchangeResponse) String

func (x *CancelExchangeResponse) String() string

type CircleSeedHolders

type CircleSeedHolders struct {
	Seeds    []*UserSeeds       `protobuf:"bytes,1,rep,name=seeds,proto3" json:"seeds,omitempty"`
	PageInfo *protobuf.PageInfo `protobuf:"bytes,2,opt,name=page_info,json=pageInfo,proto3" json:"page_info,omitempty"`
	// contains filtered or unexported fields
}

func (*CircleSeedHolders) Descriptor deprecated

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

Deprecated: Use CircleSeedHolders.ProtoReflect.Descriptor instead.

func (*CircleSeedHolders) GetPageInfo

func (x *CircleSeedHolders) GetPageInfo() *protobuf.PageInfo

func (*CircleSeedHolders) GetSeeds

func (x *CircleSeedHolders) GetSeeds() []*UserSeeds

func (*CircleSeedHolders) ProtoMessage

func (*CircleSeedHolders) ProtoMessage()

func (*CircleSeedHolders) ProtoReflect

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

func (*CircleSeedHolders) Reset

func (x *CircleSeedHolders) Reset()

func (*CircleSeedHolders) String

func (x *CircleSeedHolders) String() string

type CreateExchangeProposalRequest

type CreateExchangeProposalRequest struct {
	ToUserId string                  `protobuf:"bytes,1,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"`
	Type     ExchangeProposalType    `protobuf:"varint,2,opt,name=type,proto3,enum=seeds_api.v2.ExchangeProposalType" json:"type,omitempty"`
	Seeds    *ExchangeProposalSeeds  `protobuf:"bytes,3,opt,name=seeds,proto3" json:"seeds,omitempty"`
	Melons   *ExchangeProposalMelons `protobuf:"bytes,4,opt,name=melons,proto3" json:"melons,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateExchangeProposalRequest) Descriptor deprecated

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

Deprecated: Use CreateExchangeProposalRequest.ProtoReflect.Descriptor instead.

func (*CreateExchangeProposalRequest) GetMelons

func (*CreateExchangeProposalRequest) GetSeeds

func (*CreateExchangeProposalRequest) GetToUserId

func (x *CreateExchangeProposalRequest) GetToUserId() string

func (*CreateExchangeProposalRequest) GetType

func (*CreateExchangeProposalRequest) ProtoMessage

func (*CreateExchangeProposalRequest) ProtoMessage()

func (*CreateExchangeProposalRequest) ProtoReflect

func (*CreateExchangeProposalRequest) Reset

func (x *CreateExchangeProposalRequest) Reset()

func (*CreateExchangeProposalRequest) String

type CreateExchangeProposalResponse

type CreateExchangeProposalResponse struct {
	Proposal *ExchangeProposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateExchangeProposalResponse) Descriptor deprecated

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

Deprecated: Use CreateExchangeProposalResponse.ProtoReflect.Descriptor instead.

func (*CreateExchangeProposalResponse) GetProposal

func (*CreateExchangeProposalResponse) ProtoMessage

func (*CreateExchangeProposalResponse) ProtoMessage()

func (*CreateExchangeProposalResponse) ProtoReflect

func (*CreateExchangeProposalResponse) Reset

func (x *CreateExchangeProposalResponse) Reset()

func (*CreateExchangeProposalResponse) String

type ExchangeProposal

type ExchangeProposal struct {
	Id         string                  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	FromUserId string                  `protobuf:"bytes,2,opt,name=from_user_id,json=fromUserId,proto3" json:"from_user_id,omitempty"`
	ToUserId   string                  `protobuf:"bytes,3,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"`
	Type       ExchangeProposalType    `protobuf:"varint,4,opt,name=type,proto3,enum=seeds_api.v2.ExchangeProposalType" json:"type,omitempty"`
	Seeds      *ExchangeProposalSeeds  `protobuf:"bytes,5,opt,name=seeds,proto3" json:"seeds,omitempty"`
	Melons     *ExchangeProposalMelons `protobuf:"bytes,6,opt,name=melons,proto3" json:"melons,omitempty"`
	State      ExchangeProposal_State  `protobuf:"varint,7,opt,name=state,proto3,enum=seeds_api.v2.ExchangeProposal_State" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*ExchangeProposal) Descriptor deprecated

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

Deprecated: Use ExchangeProposal.ProtoReflect.Descriptor instead.

func (*ExchangeProposal) GetFromUserId

func (x *ExchangeProposal) GetFromUserId() string

func (*ExchangeProposal) GetId

func (x *ExchangeProposal) GetId() string

func (*ExchangeProposal) GetMelons

func (x *ExchangeProposal) GetMelons() *ExchangeProposalMelons

func (*ExchangeProposal) GetSeeds

func (x *ExchangeProposal) GetSeeds() *ExchangeProposalSeeds

func (*ExchangeProposal) GetState

func (*ExchangeProposal) GetToUserId

func (x *ExchangeProposal) GetToUserId() string

func (*ExchangeProposal) GetType

func (*ExchangeProposal) ProtoMessage

func (*ExchangeProposal) ProtoMessage()

func (*ExchangeProposal) ProtoReflect

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

func (*ExchangeProposal) Reset

func (x *ExchangeProposal) Reset()

func (*ExchangeProposal) String

func (x *ExchangeProposal) String() string

type ExchangeProposalMelons

type ExchangeProposalMelons struct {
	Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*ExchangeProposalMelons) Descriptor deprecated

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

Deprecated: Use ExchangeProposalMelons.ProtoReflect.Descriptor instead.

func (*ExchangeProposalMelons) GetAmount

func (x *ExchangeProposalMelons) GetAmount() int64

func (*ExchangeProposalMelons) ProtoMessage

func (*ExchangeProposalMelons) ProtoMessage()

func (*ExchangeProposalMelons) ProtoReflect

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

func (*ExchangeProposalMelons) Reset

func (x *ExchangeProposalMelons) Reset()

func (*ExchangeProposalMelons) String

func (x *ExchangeProposalMelons) String() string

type ExchangeProposalSeeds

type ExchangeProposalSeeds struct {
	CircleId string `protobuf:"bytes,1,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"`
	Amount   int64  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*ExchangeProposalSeeds) Descriptor deprecated

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

Deprecated: Use ExchangeProposalSeeds.ProtoReflect.Descriptor instead.

func (*ExchangeProposalSeeds) GetAmount

func (x *ExchangeProposalSeeds) GetAmount() int64

func (*ExchangeProposalSeeds) GetCircleId

func (x *ExchangeProposalSeeds) GetCircleId() string

func (*ExchangeProposalSeeds) ProtoMessage

func (*ExchangeProposalSeeds) ProtoMessage()

func (*ExchangeProposalSeeds) ProtoReflect

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

func (*ExchangeProposalSeeds) Reset

func (x *ExchangeProposalSeeds) Reset()

func (*ExchangeProposalSeeds) String

func (x *ExchangeProposalSeeds) String() string

type ExchangeProposalType

type ExchangeProposalType int32

buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX

const (
	ExchangeProposalType_EXCHANGE_PROPOSAL_TYPE_BUY  ExchangeProposalType = 0
	ExchangeProposalType_EXCHANGE_PROPOSAL_TYPE_SELL ExchangeProposalType = 1
)

func (ExchangeProposalType) Descriptor

func (ExchangeProposalType) Enum

func (ExchangeProposalType) EnumDescriptor deprecated

func (ExchangeProposalType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ExchangeProposalType.Descriptor instead.

func (ExchangeProposalType) Number

func (ExchangeProposalType) String

func (x ExchangeProposalType) String() string

func (ExchangeProposalType) Type

type ExchangeProposal_State

type ExchangeProposal_State int32

buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX

const (
	ExchangeProposal_STATE_CREATED    ExchangeProposal_State = 0
	ExchangeProposal_STATE_ACCEPTED   ExchangeProposal_State = 1
	ExchangeProposal_STATE_PROCESSING ExchangeProposal_State = 2
	ExchangeProposal_STATE_FINALISED  ExchangeProposal_State = 3
	ExchangeProposal_STATE_REJECTED   ExchangeProposal_State = 4
	ExchangeProposal_STATE_CANCELED   ExchangeProposal_State = 5
	ExchangeProposal_STATE_FAILED     ExchangeProposal_State = 6
)

func (ExchangeProposal_State) Descriptor

func (ExchangeProposal_State) Enum

func (ExchangeProposal_State) EnumDescriptor deprecated

func (ExchangeProposal_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use ExchangeProposal_State.Descriptor instead.

func (ExchangeProposal_State) Number

func (ExchangeProposal_State) String

func (x ExchangeProposal_State) String() string

func (ExchangeProposal_State) Type

type GetCircleSeedsRequest

type GetCircleSeedsRequest struct {
	CircleId    string               `protobuf:"bytes,1,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"`
	WithHolders bool                 `protobuf:"varint,2,opt,name=with_holders,json=withHolders,proto3" json:"with_holders,omitempty"`
	Cursor      *protobuf.PageCursor `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCircleSeedsRequest) Descriptor deprecated

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

Deprecated: Use GetCircleSeedsRequest.ProtoReflect.Descriptor instead.

func (*GetCircleSeedsRequest) GetCircleId

func (x *GetCircleSeedsRequest) GetCircleId() string

func (*GetCircleSeedsRequest) GetCursor

func (x *GetCircleSeedsRequest) GetCursor() *protobuf.PageCursor

func (*GetCircleSeedsRequest) GetWithHolders

func (x *GetCircleSeedsRequest) GetWithHolders() bool

func (*GetCircleSeedsRequest) ProtoMessage

func (*GetCircleSeedsRequest) ProtoMessage()

func (*GetCircleSeedsRequest) ProtoReflect

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

func (*GetCircleSeedsRequest) Reset

func (x *GetCircleSeedsRequest) Reset()

func (*GetCircleSeedsRequest) String

func (x *GetCircleSeedsRequest) String() string

type GetCircleSeedsResponse

type GetCircleSeedsResponse struct {
	TotalAmount int64              `protobuf:"varint,1,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"`
	Holders     *CircleSeedHolders `protobuf:"bytes,2,opt,name=holders,proto3,oneof" json:"holders,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCircleSeedsResponse) Descriptor deprecated

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

Deprecated: Use GetCircleSeedsResponse.ProtoReflect.Descriptor instead.

func (*GetCircleSeedsResponse) GetHolders

func (x *GetCircleSeedsResponse) GetHolders() *CircleSeedHolders

func (*GetCircleSeedsResponse) GetTotalAmount

func (x *GetCircleSeedsResponse) GetTotalAmount() int64

func (*GetCircleSeedsResponse) ProtoMessage

func (*GetCircleSeedsResponse) ProtoMessage()

func (*GetCircleSeedsResponse) ProtoReflect

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

func (*GetCircleSeedsResponse) Reset

func (x *GetCircleSeedsResponse) Reset()

func (*GetCircleSeedsResponse) String

func (x *GetCircleSeedsResponse) String() string

type GetExchangeRequest

type GetExchangeRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetExchangeRequest) Descriptor deprecated

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

Deprecated: Use GetExchangeRequest.ProtoReflect.Descriptor instead.

func (*GetExchangeRequest) GetId

func (x *GetExchangeRequest) GetId() string

func (*GetExchangeRequest) ProtoMessage

func (*GetExchangeRequest) ProtoMessage()

func (*GetExchangeRequest) ProtoReflect

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

func (*GetExchangeRequest) Reset

func (x *GetExchangeRequest) Reset()

func (*GetExchangeRequest) String

func (x *GetExchangeRequest) String() string

type GetExchangeResponse

type GetExchangeResponse struct {
	Proposal *ExchangeProposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
	// contains filtered or unexported fields
}

func (*GetExchangeResponse) Descriptor deprecated

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

Deprecated: Use GetExchangeResponse.ProtoReflect.Descriptor instead.

func (*GetExchangeResponse) GetProposal

func (x *GetExchangeResponse) GetProposal() *ExchangeProposal

func (*GetExchangeResponse) ProtoMessage

func (*GetExchangeResponse) ProtoMessage()

func (*GetExchangeResponse) ProtoReflect

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

func (*GetExchangeResponse) Reset

func (x *GetExchangeResponse) Reset()

func (*GetExchangeResponse) String

func (x *GetExchangeResponse) String() string

type GetUserMelonsRequest

type GetUserMelonsRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserMelonsRequest) Descriptor deprecated

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

Deprecated: Use GetUserMelonsRequest.ProtoReflect.Descriptor instead.

func (*GetUserMelonsRequest) GetUserId

func (x *GetUserMelonsRequest) GetUserId() string

func (*GetUserMelonsRequest) ProtoMessage

func (*GetUserMelonsRequest) ProtoMessage()

func (*GetUserMelonsRequest) ProtoReflect

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

func (*GetUserMelonsRequest) Reset

func (x *GetUserMelonsRequest) Reset()

func (*GetUserMelonsRequest) String

func (x *GetUserMelonsRequest) String() string

type GetUserMelonsResponse

type GetUserMelonsResponse struct {
	Melons *UserMelons `protobuf:"bytes,1,opt,name=melons,proto3" json:"melons,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserMelonsResponse) Descriptor deprecated

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

Deprecated: Use GetUserMelonsResponse.ProtoReflect.Descriptor instead.

func (*GetUserMelonsResponse) GetMelons

func (x *GetUserMelonsResponse) GetMelons() *UserMelons

func (*GetUserMelonsResponse) ProtoMessage

func (*GetUserMelonsResponse) ProtoMessage()

func (*GetUserMelonsResponse) ProtoReflect

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

func (*GetUserMelonsResponse) Reset

func (x *GetUserMelonsResponse) Reset()

func (*GetUserMelonsResponse) String

func (x *GetUserMelonsResponse) String() string

type GetUserSeedsInCircleRequest

type GetUserSeedsInCircleRequest struct {
	UserId   string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	CircleId string `protobuf:"bytes,2,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserSeedsInCircleRequest) Descriptor deprecated

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

Deprecated: Use GetUserSeedsInCircleRequest.ProtoReflect.Descriptor instead.

func (*GetUserSeedsInCircleRequest) GetCircleId

func (x *GetUserSeedsInCircleRequest) GetCircleId() string

func (*GetUserSeedsInCircleRequest) GetUserId

func (x *GetUserSeedsInCircleRequest) GetUserId() string

func (*GetUserSeedsInCircleRequest) ProtoMessage

func (*GetUserSeedsInCircleRequest) ProtoMessage()

func (*GetUserSeedsInCircleRequest) ProtoReflect

func (*GetUserSeedsInCircleRequest) Reset

func (x *GetUserSeedsInCircleRequest) Reset()

func (*GetUserSeedsInCircleRequest) String

func (x *GetUserSeedsInCircleRequest) String() string

type GetUserSeedsInCircleResponse

type GetUserSeedsInCircleResponse struct {
	Seeds *UserSeeds `protobuf:"bytes,1,opt,name=seeds,proto3" json:"seeds,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserSeedsInCircleResponse) Descriptor deprecated

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

Deprecated: Use GetUserSeedsInCircleResponse.ProtoReflect.Descriptor instead.

func (*GetUserSeedsInCircleResponse) GetSeeds

func (x *GetUserSeedsInCircleResponse) GetSeeds() *UserSeeds

func (*GetUserSeedsInCircleResponse) ProtoMessage

func (*GetUserSeedsInCircleResponse) ProtoMessage()

func (*GetUserSeedsInCircleResponse) ProtoReflect

func (*GetUserSeedsInCircleResponse) Reset

func (x *GetUserSeedsInCircleResponse) Reset()

func (*GetUserSeedsInCircleResponse) String

type GetUserSeedsRequest

type GetUserSeedsRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserSeedsRequest) Descriptor deprecated

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

Deprecated: Use GetUserSeedsRequest.ProtoReflect.Descriptor instead.

func (*GetUserSeedsRequest) GetUserId

func (x *GetUserSeedsRequest) GetUserId() string

func (*GetUserSeedsRequest) ProtoMessage

func (*GetUserSeedsRequest) ProtoMessage()

func (*GetUserSeedsRequest) ProtoReflect

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

func (*GetUserSeedsRequest) Reset

func (x *GetUserSeedsRequest) Reset()

func (*GetUserSeedsRequest) String

func (x *GetUserSeedsRequest) String() string

type GetUserSeedsResponse

type GetUserSeedsResponse struct {
	Seeds []*UserSeeds `protobuf:"bytes,1,rep,name=seeds,proto3" json:"seeds,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserSeedsResponse) Descriptor deprecated

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

Deprecated: Use GetUserSeedsResponse.ProtoReflect.Descriptor instead.

func (*GetUserSeedsResponse) GetSeeds

func (x *GetUserSeedsResponse) GetSeeds() []*UserSeeds

func (*GetUserSeedsResponse) ProtoMessage

func (*GetUserSeedsResponse) ProtoMessage()

func (*GetUserSeedsResponse) ProtoReflect

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

func (*GetUserSeedsResponse) Reset

func (x *GetUserSeedsResponse) Reset()

func (*GetUserSeedsResponse) String

func (x *GetUserSeedsResponse) String() string

type RejectExchangeRequest

type RejectExchangeRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*RejectExchangeRequest) Descriptor deprecated

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

Deprecated: Use RejectExchangeRequest.ProtoReflect.Descriptor instead.

func (*RejectExchangeRequest) GetId

func (x *RejectExchangeRequest) GetId() string

func (*RejectExchangeRequest) ProtoMessage

func (*RejectExchangeRequest) ProtoMessage()

func (*RejectExchangeRequest) ProtoReflect

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

func (*RejectExchangeRequest) Reset

func (x *RejectExchangeRequest) Reset()

func (*RejectExchangeRequest) String

func (x *RejectExchangeRequest) String() string

type RejectExchangeResponse

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

func (*RejectExchangeResponse) Descriptor deprecated

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

Deprecated: Use RejectExchangeResponse.ProtoReflect.Descriptor instead.

func (*RejectExchangeResponse) ProtoMessage

func (*RejectExchangeResponse) ProtoMessage()

func (*RejectExchangeResponse) ProtoReflect

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

func (*RejectExchangeResponse) Reset

func (x *RejectExchangeResponse) Reset()

func (*RejectExchangeResponse) String

func (x *RejectExchangeResponse) String() string

type SeedsAPIClient

type SeedsAPIClient interface {
	GetExchange(ctx context.Context, in *GetExchangeRequest, opts ...grpc.CallOption) (*GetExchangeResponse, error)
	CreateExchangeProposal(ctx context.Context, in *CreateExchangeProposalRequest, opts ...grpc.CallOption) (*CreateExchangeProposalResponse, error)
	// AcceptExchange can only be used by those to whom the exchange is offered.
	AcceptExchange(ctx context.Context, in *AcceptExchangeRequest, opts ...grpc.CallOption) (*AcceptExchangeResponse, error)
	// RejectExchange can only be used by those to whom the exchange is offered.
	RejectExchange(ctx context.Context, in *RejectExchangeRequest, opts ...grpc.CallOption) (*RejectExchangeResponse, error)
	// CancelExchange can only be used by the author of the exchange offer.
	CancelExchange(ctx context.Context, in *CancelExchangeRequest, opts ...grpc.CallOption) (*CancelExchangeResponse, error)
	GetUserSeeds(ctx context.Context, in *GetUserSeedsRequest, opts ...grpc.CallOption) (*GetUserSeedsResponse, error)
	GetUserSeedsInCircle(ctx context.Context, in *GetUserSeedsInCircleRequest, opts ...grpc.CallOption) (*GetUserSeedsInCircleResponse, error)
	GetCircleSeeds(ctx context.Context, in *GetCircleSeedsRequest, opts ...grpc.CallOption) (*GetCircleSeedsResponse, error)
	TransferSeeds(ctx context.Context, in *TransferSeedsRequest, opts ...grpc.CallOption) (*TransferSeedsResponse, error)
	GetUserMelons(ctx context.Context, in *GetUserMelonsRequest, opts ...grpc.CallOption) (*GetUserMelonsResponse, error)
}

SeedsAPIClient is the client API for SeedsAPI 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 NewSeedsAPIClient

func NewSeedsAPIClient(cc grpc.ClientConnInterface) SeedsAPIClient

type SeedsAPIServer

type SeedsAPIServer interface {
	GetExchange(context.Context, *GetExchangeRequest) (*GetExchangeResponse, error)
	CreateExchangeProposal(context.Context, *CreateExchangeProposalRequest) (*CreateExchangeProposalResponse, error)
	// AcceptExchange can only be used by those to whom the exchange is offered.
	AcceptExchange(context.Context, *AcceptExchangeRequest) (*AcceptExchangeResponse, error)
	// RejectExchange can only be used by those to whom the exchange is offered.
	RejectExchange(context.Context, *RejectExchangeRequest) (*RejectExchangeResponse, error)
	// CancelExchange can only be used by the author of the exchange offer.
	CancelExchange(context.Context, *CancelExchangeRequest) (*CancelExchangeResponse, error)
	GetUserSeeds(context.Context, *GetUserSeedsRequest) (*GetUserSeedsResponse, error)
	GetUserSeedsInCircle(context.Context, *GetUserSeedsInCircleRequest) (*GetUserSeedsInCircleResponse, error)
	GetCircleSeeds(context.Context, *GetCircleSeedsRequest) (*GetCircleSeedsResponse, error)
	TransferSeeds(context.Context, *TransferSeedsRequest) (*TransferSeedsResponse, error)
	GetUserMelons(context.Context, *GetUserMelonsRequest) (*GetUserMelonsResponse, error)
	// contains filtered or unexported methods
}

SeedsAPIServer is the server API for SeedsAPI service. All implementations must embed UnimplementedSeedsAPIServer for forward compatibility

type TransferSeedsRequest

type TransferSeedsRequest struct {
	ToUserId string `protobuf:"bytes,1,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"`
	CircleId string `protobuf:"bytes,2,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"`
	Amount   int64  `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferSeedsRequest) Descriptor deprecated

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

Deprecated: Use TransferSeedsRequest.ProtoReflect.Descriptor instead.

func (*TransferSeedsRequest) GetAmount

func (x *TransferSeedsRequest) GetAmount() int64

func (*TransferSeedsRequest) GetCircleId

func (x *TransferSeedsRequest) GetCircleId() string

func (*TransferSeedsRequest) GetToUserId

func (x *TransferSeedsRequest) GetToUserId() string

func (*TransferSeedsRequest) ProtoMessage

func (*TransferSeedsRequest) ProtoMessage()

func (*TransferSeedsRequest) ProtoReflect

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

func (*TransferSeedsRequest) Reset

func (x *TransferSeedsRequest) Reset()

func (*TransferSeedsRequest) String

func (x *TransferSeedsRequest) String() string

type TransferSeedsResponse

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

func (*TransferSeedsResponse) Descriptor deprecated

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

Deprecated: Use TransferSeedsResponse.ProtoReflect.Descriptor instead.

func (*TransferSeedsResponse) ProtoMessage

func (*TransferSeedsResponse) ProtoMessage()

func (*TransferSeedsResponse) ProtoReflect

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

func (*TransferSeedsResponse) Reset

func (x *TransferSeedsResponse) Reset()

func (*TransferSeedsResponse) String

func (x *TransferSeedsResponse) String() string

type UnimplementedSeedsAPIServer

type UnimplementedSeedsAPIServer struct {
}

UnimplementedSeedsAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedSeedsAPIServer) AcceptExchange

func (UnimplementedSeedsAPIServer) CancelExchange

func (UnimplementedSeedsAPIServer) GetCircleSeeds

func (UnimplementedSeedsAPIServer) GetExchange

func (UnimplementedSeedsAPIServer) GetUserMelons

func (UnimplementedSeedsAPIServer) GetUserSeeds

func (UnimplementedSeedsAPIServer) RejectExchange

func (UnimplementedSeedsAPIServer) TransferSeeds

type UnsafeSeedsAPIServer

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

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

type UserMelons

type UserMelons struct {
	UserId          string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	AmountAvailable int64  `protobuf:"varint,2,opt,name=amount_available,json=amountAvailable,proto3" json:"amount_available,omitempty"`
	AmountLocked    int64  `protobuf:"varint,3,opt,name=amount_locked,json=amountLocked,proto3" json:"amount_locked,omitempty"`
	AmountTotal     int64  `protobuf:"varint,4,opt,name=amount_total,json=amountTotal,proto3" json:"amount_total,omitempty"`
	// contains filtered or unexported fields
}

func (*UserMelons) Descriptor deprecated

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

Deprecated: Use UserMelons.ProtoReflect.Descriptor instead.

func (*UserMelons) GetAmountAvailable

func (x *UserMelons) GetAmountAvailable() int64

func (*UserMelons) GetAmountLocked

func (x *UserMelons) GetAmountLocked() int64

func (*UserMelons) GetAmountTotal

func (x *UserMelons) GetAmountTotal() int64

func (*UserMelons) GetUserId

func (x *UserMelons) GetUserId() string

func (*UserMelons) ProtoMessage

func (*UserMelons) ProtoMessage()

func (*UserMelons) ProtoReflect

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

func (*UserMelons) Reset

func (x *UserMelons) Reset()

func (*UserMelons) String

func (x *UserMelons) String() string

type UserSeeds

type UserSeeds struct {
	UserId          string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	CircleId        string `protobuf:"bytes,2,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"`
	AmountAvailable int64  `protobuf:"varint,3,opt,name=amount_available,json=amountAvailable,proto3" json:"amount_available,omitempty"`
	AmountLocked    int64  `protobuf:"varint,4,opt,name=amount_locked,json=amountLocked,proto3" json:"amount_locked,omitempty"`
	AmountTotal     int64  `protobuf:"varint,5,opt,name=amount_total,json=amountTotal,proto3" json:"amount_total,omitempty"`
	// contains filtered or unexported fields
}

func (*UserSeeds) Descriptor deprecated

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

Deprecated: Use UserSeeds.ProtoReflect.Descriptor instead.

func (*UserSeeds) GetAmountAvailable

func (x *UserSeeds) GetAmountAvailable() int64

func (*UserSeeds) GetAmountLocked

func (x *UserSeeds) GetAmountLocked() int64

func (*UserSeeds) GetAmountTotal

func (x *UserSeeds) GetAmountTotal() int64

func (*UserSeeds) GetCircleId

func (x *UserSeeds) GetCircleId() string

func (*UserSeeds) GetUserId

func (x *UserSeeds) GetUserId() string

func (*UserSeeds) ProtoMessage

func (*UserSeeds) ProtoMessage()

func (*UserSeeds) ProtoReflect

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

func (*UserSeeds) Reset

func (x *UserSeeds) Reset()

func (*UserSeeds) String

func (x *UserSeeds) String() string

Directories

Path Synopsis
Package seeds_mock is a generated GoMock package.
Package seeds_mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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