Documentation ¶
Index ¶
- Variables
- func RegisterWantServiceServer(s grpc.ServiceRegistrar, srv WantServiceServer)
- type AddWantRequest
- func (*AddWantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddWantRequest) GetBudget() string
- func (x *AddWantRequest) GetLevel() MasterWant_Level
- func (x *AddWantRequest) GetReleaseId() int32
- func (x *AddWantRequest) GetRetireLevel() MasterWant_Level
- func (x *AddWantRequest) GetRetireTime() int64
- func (x *AddWantRequest) GetSuperwant() bool
- func (*AddWantRequest) ProtoMessage()
- func (x *AddWantRequest) ProtoReflect() protoreflect.Message
- func (x *AddWantRequest) Reset()
- func (x *AddWantRequest) String() string
- type AddWantResponse
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetBudget() int32
- func (x *Config) GetLastPush() int64
- func (x *Config) GetLastSpendUpdate() int64
- func (x *Config) GetSpends() map[int32]*RecordSpend
- func (x *Config) GetWants() []*MasterWant
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type GetWantsRequest
- type GetWantsResponse
- type MasterWant
- func (*MasterWant) Descriptor() ([]byte, []int)deprecated
- func (x *MasterWant) GetActive() bool
- func (x *MasterWant) GetBudget() string
- func (x *MasterWant) GetCurrentState() MasterWant_WantState
- func (x *MasterWant) GetDateAdded() int64
- func (x *MasterWant) GetDatePurchased() int64
- func (x *MasterWant) GetDemoted() bool
- func (x *MasterWant) GetDesiredState() MasterWant_WantState
- func (x *MasterWant) GetDirty() bool
- func (x *MasterWant) GetLevel() MasterWant_Level
- func (x *MasterWant) GetRelease() *proto.Release
- func (x *MasterWant) GetRetireLevel() MasterWant_Level
- func (x *MasterWant) GetRetireTime() int64
- func (x *MasterWant) GetStaged() bool
- func (x *MasterWant) GetSuperwant() bool
- func (*MasterWant) ProtoMessage()
- func (x *MasterWant) ProtoReflect() protoreflect.Message
- func (x *MasterWant) Reset()
- func (x *MasterWant) String() string
- type MasterWant_Level
- func (MasterWant_Level) Descriptor() protoreflect.EnumDescriptor
- func (x MasterWant_Level) Enum() *MasterWant_Level
- func (MasterWant_Level) EnumDescriptor() ([]byte, []int)deprecated
- func (x MasterWant_Level) Number() protoreflect.EnumNumber
- func (x MasterWant_Level) String() string
- func (MasterWant_Level) Type() protoreflect.EnumType
- type MasterWant_WantState
- func (MasterWant_WantState) Descriptor() protoreflect.EnumDescriptor
- func (x MasterWant_WantState) Enum() *MasterWant_WantState
- func (MasterWant_WantState) EnumDescriptor() ([]byte, []int)deprecated
- func (x MasterWant_WantState) Number() protoreflect.EnumNumber
- func (x MasterWant_WantState) String() string
- func (MasterWant_WantState) Type() protoreflect.EnumType
- type RecordSpend
- func (*RecordSpend) Descriptor() ([]byte, []int)deprecated
- func (x *RecordSpend) GetCost() int32
- func (x *RecordSpend) GetDateAdded() int64
- func (*RecordSpend) ProtoMessage()
- func (x *RecordSpend) ProtoReflect() protoreflect.Message
- func (x *RecordSpend) Reset()
- func (x *RecordSpend) String() string
- type Spend
- type SpendingRequest
- type SpendingResponse
- type SyncRequest
- type SyncResponse
- type UnimplementedWantServiceServer
- func (UnimplementedWantServiceServer) AddWant(context.Context, *AddWantRequest) (*AddWantResponse, error)
- func (UnimplementedWantServiceServer) GetWants(context.Context, *GetWantsRequest) (*GetWantsResponse, error)
- func (UnimplementedWantServiceServer) Sync(context.Context, *SyncRequest) (*SyncResponse, error)
- func (UnimplementedWantServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
- type UnsafeWantServiceServer
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetBudget() string
- func (x *UpdateRequest) GetKeepWant() bool
- func (x *UpdateRequest) GetLevel() MasterWant_Level
- func (x *UpdateRequest) GetNewState() MasterWant_WantState
- func (x *UpdateRequest) GetReason() string
- func (x *UpdateRequest) GetRetireLevel() MasterWant_Level
- func (x *UpdateRequest) GetRetireTime() int64
- func (x *UpdateRequest) GetSuper() bool
- func (x *UpdateRequest) GetWant() *proto.Release
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
- type UpdateResponse
- type WantServiceClient
- type WantServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( MasterWant_Level_name = map[int32]string{ 0: "UNKNOWN", 1: "ANYTIME", 2: "LIST", 3: "ALWAYS", 4: "STAGED_TO_BE_ADDED", 5: "NEVER", 6: "BOUGHT", 7: "WANT_OG", 8: "WANT_DIGITAL", 9: "ANYTIME_LIST", } MasterWant_Level_value = map[string]int32{ "UNKNOWN": 0, "ANYTIME": 1, "LIST": 2, "ALWAYS": 3, "STAGED_TO_BE_ADDED": 4, "NEVER": 5, "BOUGHT": 6, "WANT_OG": 7, "WANT_DIGITAL": 8, "ANYTIME_LIST": 9, } )
Enum value maps for MasterWant_Level.
var ( MasterWant_WantState_name = map[int32]string{ 0: "STATE_UNKNOWN", 1: "WANTED", 2: "UNWANTED", } MasterWant_WantState_value = map[string]int32{ "STATE_UNKNOWN": 0, "WANTED": 1, "UNWANTED": 2, } )
Enum value maps for MasterWant_WantState.
var File_recordwants_proto protoreflect.FileDescriptor
var WantService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "recordwants.WantService", HandlerType: (*WantServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Update", Handler: _WantService_Update_Handler, }, { MethodName: "AddWant", Handler: _WantService_AddWant_Handler, }, { MethodName: "GetWants", Handler: _WantService_GetWants_Handler, }, { MethodName: "Sync", Handler: _WantService_Sync_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "recordwants.proto", }
WantService_ServiceDesc is the grpc.ServiceDesc for WantService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWantServiceServer ¶
func RegisterWantServiceServer(s grpc.ServiceRegistrar, srv WantServiceServer)
Types ¶
type AddWantRequest ¶
type AddWantRequest struct { ReleaseId int32 `protobuf:"varint,1,opt,name=release_id,json=releaseId,proto3" json:"release_id,omitempty"` Superwant bool `protobuf:"varint,2,opt,name=superwant,proto3" json:"superwant,omitempty"` Level MasterWant_Level `protobuf:"varint,3,opt,name=level,proto3,enum=recordwants.MasterWant_Level" json:"level,omitempty"` RetireTime int64 `protobuf:"varint,4,opt,name=retire_time,json=retireTime,proto3" json:"retire_time,omitempty"` RetireLevel MasterWant_Level `` /* 129-byte string literal not displayed */ Budget string `protobuf:"bytes,6,opt,name=budget,proto3" json:"budget,omitempty"` // contains filtered or unexported fields }
func (*AddWantRequest) Descriptor
deprecated
func (*AddWantRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddWantRequest.ProtoReflect.Descriptor instead.
func (*AddWantRequest) GetBudget ¶
func (x *AddWantRequest) GetBudget() string
func (*AddWantRequest) GetLevel ¶
func (x *AddWantRequest) GetLevel() MasterWant_Level
func (*AddWantRequest) GetReleaseId ¶
func (x *AddWantRequest) GetReleaseId() int32
func (*AddWantRequest) GetRetireLevel ¶
func (x *AddWantRequest) GetRetireLevel() MasterWant_Level
func (*AddWantRequest) GetRetireTime ¶
func (x *AddWantRequest) GetRetireTime() int64
func (*AddWantRequest) GetSuperwant ¶
func (x *AddWantRequest) GetSuperwant() bool
func (*AddWantRequest) ProtoMessage ¶
func (*AddWantRequest) ProtoMessage()
func (*AddWantRequest) ProtoReflect ¶
func (x *AddWantRequest) ProtoReflect() protoreflect.Message
func (*AddWantRequest) Reset ¶
func (x *AddWantRequest) Reset()
func (*AddWantRequest) String ¶
func (x *AddWantRequest) String() string
type AddWantResponse ¶
type AddWantResponse struct {
// contains filtered or unexported fields
}
func (*AddWantResponse) Descriptor
deprecated
func (*AddWantResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddWantResponse.ProtoReflect.Descriptor instead.
func (*AddWantResponse) ProtoMessage ¶
func (*AddWantResponse) ProtoMessage()
func (*AddWantResponse) ProtoReflect ¶
func (x *AddWantResponse) ProtoReflect() protoreflect.Message
func (*AddWantResponse) Reset ¶
func (x *AddWantResponse) Reset()
func (*AddWantResponse) String ¶
func (x *AddWantResponse) String() string
type Config ¶
type Config struct { Wants []*MasterWant `protobuf:"bytes,1,rep,name=wants,proto3" json:"wants,omitempty"` Budget int32 `protobuf:"varint,2,opt,name=budget,proto3" json:"budget,omitempty"` Spends map[int32]*RecordSpend `` /* 154-byte string literal not displayed */ LastSpendUpdate int64 `protobuf:"varint,4,opt,name=last_spend_update,json=lastSpendUpdate,proto3" json:"last_spend_update,omitempty"` LastPush int64 `protobuf:"varint,5,opt,name=last_push,json=lastPush,proto3" json:"last_push,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetLastPush ¶
func (*Config) GetLastSpendUpdate ¶
func (*Config) GetSpends ¶
func (x *Config) GetSpends() map[int32]*RecordSpend
func (*Config) GetWants ¶
func (x *Config) GetWants() []*MasterWant
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type GetWantsRequest ¶
type GetWantsRequest struct { ReleaseId []int32 `protobuf:"varint,1,rep,packed,name=release_id,json=releaseId,proto3" json:"release_id,omitempty"` // contains filtered or unexported fields }
func (*GetWantsRequest) Descriptor
deprecated
func (*GetWantsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetWantsRequest.ProtoReflect.Descriptor instead.
func (*GetWantsRequest) GetReleaseId ¶
func (x *GetWantsRequest) GetReleaseId() []int32
func (*GetWantsRequest) ProtoMessage ¶
func (*GetWantsRequest) ProtoMessage()
func (*GetWantsRequest) ProtoReflect ¶
func (x *GetWantsRequest) ProtoReflect() protoreflect.Message
func (*GetWantsRequest) Reset ¶
func (x *GetWantsRequest) Reset()
func (*GetWantsRequest) String ¶
func (x *GetWantsRequest) String() string
type GetWantsResponse ¶
type GetWantsResponse struct { Want []*MasterWant `protobuf:"bytes,1,rep,name=want,proto3" json:"want,omitempty"` // contains filtered or unexported fields }
func (*GetWantsResponse) Descriptor
deprecated
func (*GetWantsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetWantsResponse.ProtoReflect.Descriptor instead.
func (*GetWantsResponse) GetWant ¶
func (x *GetWantsResponse) GetWant() []*MasterWant
func (*GetWantsResponse) ProtoMessage ¶
func (*GetWantsResponse) ProtoMessage()
func (*GetWantsResponse) ProtoReflect ¶
func (x *GetWantsResponse) ProtoReflect() protoreflect.Message
func (*GetWantsResponse) Reset ¶
func (x *GetWantsResponse) Reset()
func (*GetWantsResponse) String ¶
func (x *GetWantsResponse) String() string
type MasterWant ¶
type MasterWant struct { Release *proto.Release `protobuf:"bytes,1,opt,name=release,proto3" json:"release,omitempty"` DateAdded int64 `protobuf:"varint,2,opt,name=date_added,json=dateAdded,proto3" json:"date_added,omitempty"` Staged bool `protobuf:"varint,3,opt,name=staged,proto3" json:"staged,omitempty"` Active bool `protobuf:"varint,4,opt,name=active,proto3" json:"active,omitempty"` Demoted bool `protobuf:"varint,5,opt,name=demoted,proto3" json:"demoted,omitempty"` Superwant bool `protobuf:"varint,6,opt,name=superwant,proto3" json:"superwant,omitempty"` Level MasterWant_Level `protobuf:"varint,7,opt,name=level,proto3,enum=recordwants.MasterWant_Level" json:"level,omitempty"` DatePurchased int64 `protobuf:"varint,8,opt,name=date_purchased,json=datePurchased,proto3" json:"date_purchased,omitempty"` Dirty bool `protobuf:"varint,9,opt,name=dirty,proto3" json:"dirty,omitempty"` RetireTime int64 `protobuf:"varint,10,opt,name=retire_time,json=retireTime,proto3" json:"retire_time,omitempty"` RetireLevel MasterWant_Level `` /* 130-byte string literal not displayed */ Budget string `protobuf:"bytes,12,opt,name=budget,proto3" json:"budget,omitempty"` CurrentState MasterWant_WantState `` /* 137-byte string literal not displayed */ DesiredState MasterWant_WantState `` /* 137-byte string literal not displayed */ // contains filtered or unexported fields }
func (*MasterWant) Descriptor
deprecated
func (*MasterWant) Descriptor() ([]byte, []int)
Deprecated: Use MasterWant.ProtoReflect.Descriptor instead.
func (*MasterWant) GetActive ¶
func (x *MasterWant) GetActive() bool
func (*MasterWant) GetBudget ¶
func (x *MasterWant) GetBudget() string
func (*MasterWant) GetCurrentState ¶
func (x *MasterWant) GetCurrentState() MasterWant_WantState
func (*MasterWant) GetDateAdded ¶
func (x *MasterWant) GetDateAdded() int64
func (*MasterWant) GetDatePurchased ¶
func (x *MasterWant) GetDatePurchased() int64
func (*MasterWant) GetDemoted ¶
func (x *MasterWant) GetDemoted() bool
func (*MasterWant) GetDesiredState ¶
func (x *MasterWant) GetDesiredState() MasterWant_WantState
func (*MasterWant) GetDirty ¶
func (x *MasterWant) GetDirty() bool
func (*MasterWant) GetLevel ¶
func (x *MasterWant) GetLevel() MasterWant_Level
func (*MasterWant) GetRelease ¶
func (x *MasterWant) GetRelease() *proto.Release
func (*MasterWant) GetRetireLevel ¶
func (x *MasterWant) GetRetireLevel() MasterWant_Level
func (*MasterWant) GetRetireTime ¶
func (x *MasterWant) GetRetireTime() int64
func (*MasterWant) GetStaged ¶
func (x *MasterWant) GetStaged() bool
func (*MasterWant) GetSuperwant ¶
func (x *MasterWant) GetSuperwant() bool
func (*MasterWant) ProtoMessage ¶
func (*MasterWant) ProtoMessage()
func (*MasterWant) ProtoReflect ¶
func (x *MasterWant) ProtoReflect() protoreflect.Message
func (*MasterWant) Reset ¶
func (x *MasterWant) Reset()
func (*MasterWant) String ¶
func (x *MasterWant) String() string
type MasterWant_Level ¶
type MasterWant_Level int32
const ( MasterWant_UNKNOWN MasterWant_Level = 0 MasterWant_ANYTIME MasterWant_Level = 1 MasterWant_LIST MasterWant_Level = 2 MasterWant_ALWAYS MasterWant_Level = 3 MasterWant_STAGED_TO_BE_ADDED MasterWant_Level = 4 MasterWant_NEVER MasterWant_Level = 5 MasterWant_BOUGHT MasterWant_Level = 6 MasterWant_WANT_OG MasterWant_Level = 7 MasterWant_WANT_DIGITAL MasterWant_Level = 8 MasterWant_ANYTIME_LIST MasterWant_Level = 9 )
func (MasterWant_Level) Descriptor ¶
func (MasterWant_Level) Descriptor() protoreflect.EnumDescriptor
func (MasterWant_Level) Enum ¶
func (x MasterWant_Level) Enum() *MasterWant_Level
func (MasterWant_Level) EnumDescriptor
deprecated
func (MasterWant_Level) EnumDescriptor() ([]byte, []int)
Deprecated: Use MasterWant_Level.Descriptor instead.
func (MasterWant_Level) Number ¶
func (x MasterWant_Level) Number() protoreflect.EnumNumber
func (MasterWant_Level) String ¶
func (x MasterWant_Level) String() string
func (MasterWant_Level) Type ¶
func (MasterWant_Level) Type() protoreflect.EnumType
type MasterWant_WantState ¶
type MasterWant_WantState int32
const ( MasterWant_STATE_UNKNOWN MasterWant_WantState = 0 MasterWant_WANTED MasterWant_WantState = 1 MasterWant_UNWANTED MasterWant_WantState = 2 )
func (MasterWant_WantState) Descriptor ¶
func (MasterWant_WantState) Descriptor() protoreflect.EnumDescriptor
func (MasterWant_WantState) Enum ¶
func (x MasterWant_WantState) Enum() *MasterWant_WantState
func (MasterWant_WantState) EnumDescriptor
deprecated
func (MasterWant_WantState) EnumDescriptor() ([]byte, []int)
Deprecated: Use MasterWant_WantState.Descriptor instead.
func (MasterWant_WantState) Number ¶
func (x MasterWant_WantState) Number() protoreflect.EnumNumber
func (MasterWant_WantState) String ¶
func (x MasterWant_WantState) String() string
func (MasterWant_WantState) Type ¶
func (MasterWant_WantState) Type() protoreflect.EnumType
type RecordSpend ¶
type RecordSpend struct { Cost int32 `protobuf:"varint,1,opt,name=cost,proto3" json:"cost,omitempty"` DateAdded int64 `protobuf:"varint,2,opt,name=date_added,json=dateAdded,proto3" json:"date_added,omitempty"` // contains filtered or unexported fields }
func (*RecordSpend) Descriptor
deprecated
func (*RecordSpend) Descriptor() ([]byte, []int)
Deprecated: Use RecordSpend.ProtoReflect.Descriptor instead.
func (*RecordSpend) GetCost ¶
func (x *RecordSpend) GetCost() int32
func (*RecordSpend) GetDateAdded ¶
func (x *RecordSpend) GetDateAdded() int64
func (*RecordSpend) ProtoMessage ¶
func (*RecordSpend) ProtoMessage()
func (*RecordSpend) ProtoReflect ¶
func (x *RecordSpend) ProtoReflect() protoreflect.Message
func (*RecordSpend) Reset ¶
func (x *RecordSpend) Reset()
func (*RecordSpend) String ¶
func (x *RecordSpend) String() string
type Spend ¶
type Spend struct { Month int32 `protobuf:"varint,1,opt,name=month,proto3" json:"month,omitempty"` Spend int32 `protobuf:"varint,2,opt,name=spend,proto3" json:"spend,omitempty"` // contains filtered or unexported fields }
func (*Spend) Descriptor
deprecated
func (*Spend) ProtoMessage ¶
func (*Spend) ProtoMessage()
func (*Spend) ProtoReflect ¶
func (x *Spend) ProtoReflect() protoreflect.Message
type SpendingRequest ¶
type SpendingRequest struct {
// contains filtered or unexported fields
}
func (*SpendingRequest) Descriptor
deprecated
func (*SpendingRequest) Descriptor() ([]byte, []int)
Deprecated: Use SpendingRequest.ProtoReflect.Descriptor instead.
func (*SpendingRequest) ProtoMessage ¶
func (*SpendingRequest) ProtoMessage()
func (*SpendingRequest) ProtoReflect ¶
func (x *SpendingRequest) ProtoReflect() protoreflect.Message
func (*SpendingRequest) Reset ¶
func (x *SpendingRequest) Reset()
func (*SpendingRequest) String ¶
func (x *SpendingRequest) String() string
type SpendingResponse ¶
type SpendingResponse struct { Spends []*Spend `protobuf:"bytes,1,rep,name=spends,proto3" json:"spends,omitempty"` // contains filtered or unexported fields }
func (*SpendingResponse) Descriptor
deprecated
func (*SpendingResponse) Descriptor() ([]byte, []int)
Deprecated: Use SpendingResponse.ProtoReflect.Descriptor instead.
func (*SpendingResponse) GetSpends ¶
func (x *SpendingResponse) GetSpends() []*Spend
func (*SpendingResponse) ProtoMessage ¶
func (*SpendingResponse) ProtoMessage()
func (*SpendingResponse) ProtoReflect ¶
func (x *SpendingResponse) ProtoReflect() protoreflect.Message
func (*SpendingResponse) Reset ¶
func (x *SpendingResponse) Reset()
func (*SpendingResponse) String ¶
func (x *SpendingResponse) String() string
type SyncRequest ¶
type SyncRequest struct { Soft bool `protobuf:"varint,1,opt,name=soft,proto3" json:"soft,omitempty"` // contains filtered or unexported fields }
func (*SyncRequest) Descriptor
deprecated
func (*SyncRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncRequest.ProtoReflect.Descriptor instead.
func (*SyncRequest) GetSoft ¶
func (x *SyncRequest) GetSoft() bool
func (*SyncRequest) ProtoMessage ¶
func (*SyncRequest) ProtoMessage()
func (*SyncRequest) ProtoReflect ¶
func (x *SyncRequest) ProtoReflect() protoreflect.Message
func (*SyncRequest) Reset ¶
func (x *SyncRequest) Reset()
func (*SyncRequest) String ¶
func (x *SyncRequest) String() string
type SyncResponse ¶
type SyncResponse struct {
// contains filtered or unexported fields
}
func (*SyncResponse) Descriptor
deprecated
func (*SyncResponse) Descriptor() ([]byte, []int)
Deprecated: Use SyncResponse.ProtoReflect.Descriptor instead.
func (*SyncResponse) ProtoMessage ¶
func (*SyncResponse) ProtoMessage()
func (*SyncResponse) ProtoReflect ¶
func (x *SyncResponse) ProtoReflect() protoreflect.Message
func (*SyncResponse) Reset ¶
func (x *SyncResponse) Reset()
func (*SyncResponse) String ¶
func (x *SyncResponse) String() string
type UnimplementedWantServiceServer ¶
type UnimplementedWantServiceServer struct { }
UnimplementedWantServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedWantServiceServer) AddWant ¶
func (UnimplementedWantServiceServer) AddWant(context.Context, *AddWantRequest) (*AddWantResponse, error)
func (UnimplementedWantServiceServer) GetWants ¶
func (UnimplementedWantServiceServer) GetWants(context.Context, *GetWantsRequest) (*GetWantsResponse, error)
func (UnimplementedWantServiceServer) Sync ¶
func (UnimplementedWantServiceServer) Sync(context.Context, *SyncRequest) (*SyncResponse, error)
func (UnimplementedWantServiceServer) Update ¶
func (UnimplementedWantServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
type UnsafeWantServiceServer ¶
type UnsafeWantServiceServer interface {
// contains filtered or unexported methods
}
UnsafeWantServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WantServiceServer will result in compilation errors.
type UpdateRequest ¶
type UpdateRequest struct { Want *proto.Release `protobuf:"bytes,1,opt,name=want,proto3" json:"want,omitempty"` KeepWant bool `protobuf:"varint,2,opt,name=keep_want,json=keepWant,proto3" json:"keep_want,omitempty"` Super bool `protobuf:"varint,3,opt,name=super,proto3" json:"super,omitempty"` Level MasterWant_Level `protobuf:"varint,4,opt,name=level,proto3,enum=recordwants.MasterWant_Level" json:"level,omitempty"` RetireTime int64 `protobuf:"varint,5,opt,name=retire_time,json=retireTime,proto3" json:"retire_time,omitempty"` RetireLevel MasterWant_Level `` /* 129-byte string literal not displayed */ Budget string `protobuf:"bytes,7,opt,name=budget,proto3" json:"budget,omitempty"` NewState MasterWant_WantState `protobuf:"varint,8,opt,name=new_state,json=newState,proto3,enum=recordwants.MasterWant_WantState" json:"new_state,omitempty"` Reason string `protobuf:"bytes,9,opt,name=reason,proto3" json:"reason,omitempty"` // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetBudget ¶
func (x *UpdateRequest) GetBudget() string
func (*UpdateRequest) GetKeepWant ¶
func (x *UpdateRequest) GetKeepWant() bool
func (*UpdateRequest) GetLevel ¶
func (x *UpdateRequest) GetLevel() MasterWant_Level
func (*UpdateRequest) GetNewState ¶
func (x *UpdateRequest) GetNewState() MasterWant_WantState
func (*UpdateRequest) GetReason ¶
func (x *UpdateRequest) GetReason() string
func (*UpdateRequest) GetRetireLevel ¶
func (x *UpdateRequest) GetRetireLevel() MasterWant_Level
func (*UpdateRequest) GetRetireTime ¶
func (x *UpdateRequest) GetRetireTime() int64
func (*UpdateRequest) GetSuper ¶
func (x *UpdateRequest) GetSuper() bool
func (*UpdateRequest) GetWant ¶
func (x *UpdateRequest) GetWant() *proto.Release
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
type UpdateResponse ¶
type UpdateResponse struct {
// contains filtered or unexported fields
}
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string
type WantServiceClient ¶
type WantServiceClient interface { Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) AddWant(ctx context.Context, in *AddWantRequest, opts ...grpc.CallOption) (*AddWantResponse, error) GetWants(ctx context.Context, in *GetWantsRequest, opts ...grpc.CallOption) (*GetWantsResponse, error) Sync(ctx context.Context, in *SyncRequest, opts ...grpc.CallOption) (*SyncResponse, error) }
WantServiceClient is the client API for WantService 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 NewWantServiceClient ¶
func NewWantServiceClient(cc grpc.ClientConnInterface) WantServiceClient
type WantServiceServer ¶
type WantServiceServer interface { Update(context.Context, *UpdateRequest) (*UpdateResponse, error) AddWant(context.Context, *AddWantRequest) (*AddWantResponse, error) GetWants(context.Context, *GetWantsRequest) (*GetWantsResponse, error) Sync(context.Context, *SyncRequest) (*SyncResponse, error) }
WantServiceServer is the server API for WantService service. All implementations should embed UnimplementedWantServiceServer for forward compatibility