proto

package
v0.0.0-...-c839e44 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
var File_recordwants_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetBudget

func (x *Config) GetBudget() int32

func (*Config) GetLastPush

func (x *Config) GetLastPush() int64

func (*Config) GetLastSpendUpdate

func (x *Config) GetLastSpendUpdate() int64

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

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

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) Enum

func (MasterWant_Level) EnumDescriptor deprecated

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

Deprecated: Use MasterWant_Level.Descriptor instead.

func (MasterWant_Level) Number

func (MasterWant_Level) String

func (x MasterWant_Level) String() string

func (MasterWant_Level) Type

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) Enum

func (MasterWant_WantState) EnumDescriptor deprecated

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

Deprecated: Use MasterWant_WantState.Descriptor instead.

func (MasterWant_WantState) Number

func (MasterWant_WantState) String

func (x MasterWant_WantState) String() string

func (MasterWant_WantState) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Spend.ProtoReflect.Descriptor instead.

func (*Spend) GetMonth

func (x *Spend) GetMonth() int32

func (*Spend) GetSpend

func (x *Spend) GetSpend() int32

func (*Spend) ProtoMessage

func (*Spend) ProtoMessage()

func (*Spend) ProtoReflect

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

func (*Spend) Reset

func (x *Spend) Reset()

func (*Spend) String

func (x *Spend) String() string

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) GetWants

func (UnimplementedWantServiceServer) Sync

func (UnimplementedWantServiceServer) Update

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.

type WantServiceServer

WantServiceServer is the server API for WantService service. All implementations should embed UnimplementedWantServiceServer for forward compatibility

Jump to

Keyboard shortcuts

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