pb

package
v0.0.0-...-531763a Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Anarchy_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "anarchy.Anarchy",
	HandlerType: (*AnarchyServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetElem",
			Handler:    _Anarchy_GetElem_Handler,
		},
		{
			MethodName: "GetCombination",
			Handler:    _Anarchy_GetCombination_Handler,
		},
		{
			MethodName: "CreateElement",
			Handler:    _Anarchy_CreateElement_Handler,
		},
		{
			MethodName: "GetInv",
			Handler:    _Anarchy_GetInv_Handler,
		},
		{
			MethodName: "AddFound",
			Handler:    _Anarchy_AddFound_Handler,
		},
		{
			MethodName: "GetRecents",
			Handler:    _Anarchy_GetRecents_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetAll",
			Handler:       _Anarchy_GetAll_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "WaitForNextRecent",
			Handler:       _Anarchy_WaitForNextRecent_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "anarchy.proto",
}

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

View Source
var Elemental_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "elemental.Elemental",
	HandlerType: (*ElementalServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetElem",
			Handler:    _Elemental_GetElem_Handler,
		},
		{
			MethodName: "GetCombination",
			Handler:    _Elemental_GetCombination_Handler,
		},
		{
			MethodName: "GetInv",
			Handler:    _Elemental_GetInv_Handler,
		},
		{
			MethodName: "AddFound",
			Handler:    _Elemental_AddFound_Handler,
		},
		{
			MethodName: "GetSuggestion",
			Handler:    _Elemental_GetSuggestion_Handler,
		},
		{
			MethodName: "GetSuggestionCombos",
			Handler:    _Elemental_GetSuggestionCombos_Handler,
		},
		{
			MethodName: "UpSuggestion",
			Handler:    _Elemental_UpSuggestion_Handler,
		},
		{
			MethodName: "DownSuggestion",
			Handler:    _Elemental_DownSuggestion_Handler,
		},
		{
			MethodName: "CreateSugg",
			Handler:    _Elemental_CreateSugg_Handler,
		},
		{
			MethodName: "NewSugg",
			Handler:    _Elemental_NewSugg_Handler,
		},
		{
			MethodName: "RandomLonely",
			Handler:    _Elemental_RandomLonely_Handler,
		},
		{
			MethodName: "UpAndComing",
			Handler:    _Elemental_UpAndComing_Handler,
		},
		{
			MethodName: "GetRec",
			Handler:    _Elemental_GetRec_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetAll",
			Handler:       _Elemental_GetAll_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "WaitForNextRecent",
			Handler:       _Elemental_WaitForNextRecent_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "elemental.proto",
}

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

View Source
var File_anarchy_proto protoreflect.FileDescriptor
View Source
var File_elemental_proto protoreflect.FileDescriptor

Functions

func RegisterAnarchyServer

func RegisterAnarchyServer(s grpc.ServiceRegistrar, srv AnarchyServer)

func RegisterElementalServer

func RegisterElementalServer(s grpc.ServiceRegistrar, srv ElementalServer)

Types

type AnarchyClient

type AnarchyClient interface {
	// Elements
	GetElem(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*AnarchyElement, error)
	GetCombination(ctx context.Context, in *AnarchyCombination, opts ...grpc.CallOption) (*AnarchyCombinationResult, error)
	GetAll(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (Anarchy_GetAllClient, error)
	CreateElement(ctx context.Context, in *AnarchyElementCreate, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Savefile
	GetInv(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*AnarchyInventory, error)
	AddFound(ctx context.Context, in *AnarchyUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Recents
	GetRecents(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AnarchyRecents, error)
	WaitForNextRecent(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Anarchy_WaitForNextRecentClient, error)
}

AnarchyClient is the client API for Anarchy 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 NewAnarchyClient

func NewAnarchyClient(cc grpc.ClientConnInterface) AnarchyClient

type AnarchyCombination

type AnarchyCombination struct {
	Elem1 string `protobuf:"bytes,1,opt,name=elem1,proto3" json:"elem1,omitempty"`
	Elem2 string `protobuf:"bytes,2,opt,name=elem2,proto3" json:"elem2,omitempty"`
	// contains filtered or unexported fields
}

func (*AnarchyCombination) Descriptor deprecated

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

Deprecated: Use AnarchyCombination.ProtoReflect.Descriptor instead.

func (*AnarchyCombination) GetElem1

func (x *AnarchyCombination) GetElem1() string

func (*AnarchyCombination) GetElem2

func (x *AnarchyCombination) GetElem2() string

func (*AnarchyCombination) ProtoMessage

func (*AnarchyCombination) ProtoMessage()

func (*AnarchyCombination) ProtoReflect

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

func (*AnarchyCombination) Reset

func (x *AnarchyCombination) Reset()

func (*AnarchyCombination) String

func (x *AnarchyCombination) String() string

type AnarchyCombinationResult

type AnarchyCombinationResult struct {
	Data   string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Exists bool   `protobuf:"varint,2,opt,name=exists,proto3" json:"exists,omitempty"`
	// contains filtered or unexported fields
}

func (*AnarchyCombinationResult) Descriptor deprecated

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

Deprecated: Use AnarchyCombinationResult.ProtoReflect.Descriptor instead.

func (*AnarchyCombinationResult) GetData

func (x *AnarchyCombinationResult) GetData() string

func (*AnarchyCombinationResult) GetExists

func (x *AnarchyCombinationResult) GetExists() bool

func (*AnarchyCombinationResult) ProtoMessage

func (*AnarchyCombinationResult) ProtoMessage()

func (*AnarchyCombinationResult) ProtoReflect

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

func (*AnarchyCombinationResult) Reset

func (x *AnarchyCombinationResult) Reset()

func (*AnarchyCombinationResult) String

func (x *AnarchyCombinationResult) String() string

type AnarchyElement

type AnarchyElement struct {
	Color      string   `protobuf:"bytes,1,opt,name=Color,proto3" json:"Color,omitempty"`
	Comment    string   `protobuf:"bytes,2,opt,name=Comment,proto3" json:"Comment,omitempty"`
	CreatedOn  int64    `protobuf:"varint,3,opt,name=CreatedOn,proto3" json:"CreatedOn,omitempty"`
	Creator    string   `protobuf:"bytes,4,opt,name=Creator,proto3" json:"Creator,omitempty"`
	Name       string   `protobuf:"bytes,5,opt,name=Name,proto3" json:"Name,omitempty"`
	Parents    []string `protobuf:"bytes,6,rep,name=Parents,proto3" json:"Parents,omitempty"`
	Uses       int64    `protobuf:"varint,8,opt,name=Uses,proto3" json:"Uses,omitempty"`
	FoundBy    int64    `protobuf:"varint,9,opt,name=FoundBy,proto3" json:"FoundBy,omitempty"`
	Complexity int64    `protobuf:"varint,10,opt,name=Complexity,proto3" json:"Complexity,omitempty"`
	// contains filtered or unexported fields
}

func (*AnarchyElement) Descriptor deprecated

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

Deprecated: Use AnarchyElement.ProtoReflect.Descriptor instead.

func (*AnarchyElement) GetColor

func (x *AnarchyElement) GetColor() string

func (*AnarchyElement) GetComment

func (x *AnarchyElement) GetComment() string

func (*AnarchyElement) GetComplexity

func (x *AnarchyElement) GetComplexity() int64

func (*AnarchyElement) GetCreatedOn

func (x *AnarchyElement) GetCreatedOn() int64

func (*AnarchyElement) GetCreator

func (x *AnarchyElement) GetCreator() string

func (*AnarchyElement) GetFoundBy

func (x *AnarchyElement) GetFoundBy() int64

func (*AnarchyElement) GetName

func (x *AnarchyElement) GetName() string

func (*AnarchyElement) GetParents

func (x *AnarchyElement) GetParents() []string

func (*AnarchyElement) GetUses

func (x *AnarchyElement) GetUses() int64

func (*AnarchyElement) ProtoMessage

func (*AnarchyElement) ProtoMessage()

func (*AnarchyElement) ProtoReflect

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

func (*AnarchyElement) Reset

func (x *AnarchyElement) Reset()

func (*AnarchyElement) String

func (x *AnarchyElement) String() string

type AnarchyElementCreate

type AnarchyElementCreate struct {
	Elem1   string `protobuf:"bytes,1,opt,name=Elem1,proto3" json:"Elem1,omitempty"`
	Elem2   string `protobuf:"bytes,2,opt,name=Elem2,proto3" json:"Elem2,omitempty"`
	Elem3   string `protobuf:"bytes,3,opt,name=Elem3,proto3" json:"Elem3,omitempty"`
	Uid     string `protobuf:"bytes,4,opt,name=Uid,proto3" json:"Uid,omitempty"`
	Color   string `protobuf:"bytes,5,opt,name=Color,proto3" json:"Color,omitempty"`
	Comment string `protobuf:"bytes,6,opt,name=Comment,proto3" json:"Comment,omitempty"`
	// contains filtered or unexported fields
}

func (*AnarchyElementCreate) Descriptor deprecated

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

Deprecated: Use AnarchyElementCreate.ProtoReflect.Descriptor instead.

func (*AnarchyElementCreate) GetColor

func (x *AnarchyElementCreate) GetColor() string

func (*AnarchyElementCreate) GetComment

func (x *AnarchyElementCreate) GetComment() string

func (*AnarchyElementCreate) GetElem1

func (x *AnarchyElementCreate) GetElem1() string

func (*AnarchyElementCreate) GetElem2

func (x *AnarchyElementCreate) GetElem2() string

func (*AnarchyElementCreate) GetElem3

func (x *AnarchyElementCreate) GetElem3() string

func (*AnarchyElementCreate) GetUid

func (x *AnarchyElementCreate) GetUid() string

func (*AnarchyElementCreate) ProtoMessage

func (*AnarchyElementCreate) ProtoMessage()

func (*AnarchyElementCreate) ProtoReflect

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

func (*AnarchyElementCreate) Reset

func (x *AnarchyElementCreate) Reset()

func (*AnarchyElementCreate) String

func (x *AnarchyElementCreate) String() string

type AnarchyGetAllChunk

type AnarchyGetAllChunk struct {
	Elements []*AnarchyElement `protobuf:"bytes,1,rep,name=Elements,proto3" json:"Elements,omitempty"`
	Count    int64             `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*AnarchyGetAllChunk) Descriptor deprecated

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

Deprecated: Use AnarchyGetAllChunk.ProtoReflect.Descriptor instead.

func (*AnarchyGetAllChunk) GetCount

func (x *AnarchyGetAllChunk) GetCount() int64

func (*AnarchyGetAllChunk) GetElements

func (x *AnarchyGetAllChunk) GetElements() []*AnarchyElement

func (*AnarchyGetAllChunk) ProtoMessage

func (*AnarchyGetAllChunk) ProtoMessage()

func (*AnarchyGetAllChunk) ProtoReflect

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

func (*AnarchyGetAllChunk) Reset

func (x *AnarchyGetAllChunk) Reset()

func (*AnarchyGetAllChunk) String

func (x *AnarchyGetAllChunk) String() string

type AnarchyInventory

type AnarchyInventory struct {
	Found []string `protobuf:"bytes,1,rep,name=Found,proto3" json:"Found,omitempty"`
	// contains filtered or unexported fields
}

func (*AnarchyInventory) Descriptor deprecated

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

Deprecated: Use AnarchyInventory.ProtoReflect.Descriptor instead.

func (*AnarchyInventory) GetFound

func (x *AnarchyInventory) GetFound() []string

func (*AnarchyInventory) ProtoMessage

func (*AnarchyInventory) ProtoMessage()

func (*AnarchyInventory) ProtoReflect

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

func (*AnarchyInventory) Reset

func (x *AnarchyInventory) Reset()

func (*AnarchyInventory) String

func (x *AnarchyInventory) String() string

type AnarchyRecentCombination

type AnarchyRecentCombination struct {
	Elem1 string `protobuf:"bytes,1,opt,name=Elem1,proto3" json:"Elem1,omitempty"`
	Elem2 string `protobuf:"bytes,2,opt,name=Elem2,proto3" json:"Elem2,omitempty"`
	Elem3 string `protobuf:"bytes,3,opt,name=Elem3,proto3" json:"Elem3,omitempty"`
	// contains filtered or unexported fields
}

func (*AnarchyRecentCombination) Descriptor deprecated

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

Deprecated: Use AnarchyRecentCombination.ProtoReflect.Descriptor instead.

func (*AnarchyRecentCombination) GetElem1

func (x *AnarchyRecentCombination) GetElem1() string

func (*AnarchyRecentCombination) GetElem2

func (x *AnarchyRecentCombination) GetElem2() string

func (*AnarchyRecentCombination) GetElem3

func (x *AnarchyRecentCombination) GetElem3() string

func (*AnarchyRecentCombination) ProtoMessage

func (*AnarchyRecentCombination) ProtoMessage()

func (*AnarchyRecentCombination) ProtoReflect

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

func (*AnarchyRecentCombination) Reset

func (x *AnarchyRecentCombination) Reset()

func (*AnarchyRecentCombination) String

func (x *AnarchyRecentCombination) String() string

type AnarchyRecents

type AnarchyRecents struct {
	Recents []*AnarchyRecentCombination `protobuf:"bytes,1,rep,name=Recents,proto3" json:"Recents,omitempty"`
	// contains filtered or unexported fields
}

func (*AnarchyRecents) Descriptor deprecated

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

Deprecated: Use AnarchyRecents.ProtoReflect.Descriptor instead.

func (*AnarchyRecents) GetRecents

func (x *AnarchyRecents) GetRecents() []*AnarchyRecentCombination

func (*AnarchyRecents) ProtoMessage

func (*AnarchyRecents) ProtoMessage()

func (*AnarchyRecents) ProtoReflect

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

func (*AnarchyRecents) Reset

func (x *AnarchyRecents) Reset()

func (*AnarchyRecents) String

func (x *AnarchyRecents) String() string

type AnarchyServer

type AnarchyServer interface {
	// Elements
	GetElem(context.Context, *wrapperspb.StringValue) (*AnarchyElement, error)
	GetCombination(context.Context, *AnarchyCombination) (*AnarchyCombinationResult, error)
	GetAll(*wrapperspb.StringValue, Anarchy_GetAllServer) error
	CreateElement(context.Context, *AnarchyElementCreate) (*emptypb.Empty, error)
	// Savefile
	GetInv(context.Context, *wrapperspb.StringValue) (*AnarchyInventory, error)
	AddFound(context.Context, *AnarchyUserRequest) (*emptypb.Empty, error)
	// Recents
	GetRecents(context.Context, *emptypb.Empty) (*AnarchyRecents, error)
	WaitForNextRecent(*emptypb.Empty, Anarchy_WaitForNextRecentServer) error
	// contains filtered or unexported methods
}

AnarchyServer is the server API for Anarchy service. All implementations must embed UnimplementedAnarchyServer for forward compatibility

type AnarchyUserRequest

type AnarchyUserRequest struct {
	Uid     string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
	Element string `protobuf:"bytes,2,opt,name=element,proto3" json:"element,omitempty"`
	// contains filtered or unexported fields
}

func (*AnarchyUserRequest) Descriptor deprecated

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

Deprecated: Use AnarchyUserRequest.ProtoReflect.Descriptor instead.

func (*AnarchyUserRequest) GetElement

func (x *AnarchyUserRequest) GetElement() string

func (*AnarchyUserRequest) GetUid

func (x *AnarchyUserRequest) GetUid() string

func (*AnarchyUserRequest) ProtoMessage

func (*AnarchyUserRequest) ProtoMessage()

func (*AnarchyUserRequest) ProtoReflect

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

func (*AnarchyUserRequest) Reset

func (x *AnarchyUserRequest) Reset()

func (*AnarchyUserRequest) String

func (x *AnarchyUserRequest) String() string

type Anarchy_GetAllClient

type Anarchy_GetAllClient interface {
	Recv() (*AnarchyGetAllChunk, error)
	grpc.ClientStream
}

type Anarchy_GetAllServer

type Anarchy_GetAllServer interface {
	Send(*AnarchyGetAllChunk) error
	grpc.ServerStream
}

type Anarchy_WaitForNextRecentClient

type Anarchy_WaitForNextRecentClient interface {
	Recv() (*emptypb.Empty, error)
	grpc.ClientStream
}

type Anarchy_WaitForNextRecentServer

type Anarchy_WaitForNextRecentServer interface {
	Send(*emptypb.Empty) error
	grpc.ServerStream
}

type Color

type Color struct {
	Base       string  `protobuf:"bytes,1,opt,name=Base,proto3" json:"Base,omitempty"`
	Lightness  float32 `protobuf:"fixed32,2,opt,name=Lightness,proto3" json:"Lightness,omitempty"`
	Saturation float32 `protobuf:"fixed32,3,opt,name=Saturation,proto3" json:"Saturation,omitempty"`
	// contains filtered or unexported fields
}

func (*Color) Descriptor deprecated

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

Deprecated: Use Color.ProtoReflect.Descriptor instead.

func (*Color) GetBase

func (x *Color) GetBase() string

func (*Color) GetLightness

func (x *Color) GetLightness() float32

func (*Color) GetSaturation

func (x *Color) GetSaturation() float32

func (*Color) ProtoMessage

func (*Color) ProtoMessage()

func (*Color) ProtoReflect

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

func (*Color) Reset

func (x *Color) Reset()

func (*Color) String

func (x *Color) String() string

type Combination

type Combination struct {
	Elem1 string `protobuf:"bytes,1,opt,name=elem1,proto3" json:"elem1,omitempty"`
	Elem2 string `protobuf:"bytes,2,opt,name=elem2,proto3" json:"elem2,omitempty"`
	// contains filtered or unexported fields
}

func (*Combination) Descriptor deprecated

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

Deprecated: Use Combination.ProtoReflect.Descriptor instead.

func (*Combination) GetElem1

func (x *Combination) GetElem1() string

func (*Combination) GetElem2

func (x *Combination) GetElem2() string

func (*Combination) ProtoMessage

func (*Combination) ProtoMessage()

func (*Combination) ProtoReflect

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

func (*Combination) Reset

func (x *Combination) Reset()

func (*Combination) String

func (x *Combination) String() string

type CombinationResult

type CombinationResult struct {
	Data   string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Exists bool   `protobuf:"varint,2,opt,name=exists,proto3" json:"exists,omitempty"`
	// contains filtered or unexported fields
}

func (*CombinationResult) Descriptor deprecated

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

Deprecated: Use CombinationResult.ProtoReflect.Descriptor instead.

func (*CombinationResult) GetData

func (x *CombinationResult) GetData() string

func (*CombinationResult) GetExists

func (x *CombinationResult) GetExists() bool

func (*CombinationResult) ProtoMessage

func (*CombinationResult) ProtoMessage()

func (*CombinationResult) ProtoReflect

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

func (*CombinationResult) Reset

func (x *CombinationResult) Reset()

func (*CombinationResult) String

func (x *CombinationResult) String() string

type CreateRequest

type CreateRequest struct {
	Id      string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	Elem1   string `protobuf:"bytes,2,opt,name=Elem1,proto3" json:"Elem1,omitempty"`
	Elem2   string `protobuf:"bytes,3,opt,name=Elem2,proto3" json:"Elem2,omitempty"`
	Mark    string `protobuf:"bytes,4,opt,name=Mark,proto3" json:"Mark,omitempty"`
	Pioneer string `protobuf:"bytes,5,opt,name=Pioneer,proto3" json:"Pioneer,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRequest) Descriptor deprecated

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

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetElem1

func (x *CreateRequest) GetElem1() string

func (*CreateRequest) GetElem2

func (x *CreateRequest) GetElem2() string

func (*CreateRequest) GetId

func (x *CreateRequest) GetId() string

func (*CreateRequest) GetMark

func (x *CreateRequest) GetMark() string

func (*CreateRequest) GetPioneer

func (x *CreateRequest) GetPioneer() string

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

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

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

type Element

type Element struct {
	Color      string   `protobuf:"bytes,1,opt,name=Color,proto3" json:"Color,omitempty"`
	Comment    string   `protobuf:"bytes,2,opt,name=Comment,proto3" json:"Comment,omitempty"`
	CreatedOn  int64    `protobuf:"varint,3,opt,name=CreatedOn,proto3" json:"CreatedOn,omitempty"`
	Creator    string   `protobuf:"bytes,4,opt,name=Creator,proto3" json:"Creator,omitempty"`
	Name       string   `protobuf:"bytes,5,opt,name=Name,proto3" json:"Name,omitempty"`
	Parents    []string `protobuf:"bytes,6,rep,name=Parents,proto3" json:"Parents,omitempty"`
	Pioneer    string   `protobuf:"bytes,7,opt,name=Pioneer,proto3" json:"Pioneer,omitempty"`
	Uses       int64    `protobuf:"varint,8,opt,name=Uses,proto3" json:"Uses,omitempty"`
	FoundBy    int64    `protobuf:"varint,9,opt,name=FoundBy,proto3" json:"FoundBy,omitempty"`
	Complexity int64    `protobuf:"varint,10,opt,name=Complexity,proto3" json:"Complexity,omitempty"`
	// contains filtered or unexported fields
}

func (*Element) Descriptor deprecated

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

Deprecated: Use Element.ProtoReflect.Descriptor instead.

func (*Element) GetColor

func (x *Element) GetColor() string

func (*Element) GetComment

func (x *Element) GetComment() string

func (*Element) GetComplexity

func (x *Element) GetComplexity() int64

func (*Element) GetCreatedOn

func (x *Element) GetCreatedOn() int64

func (*Element) GetCreator

func (x *Element) GetCreator() string

func (*Element) GetFoundBy

func (x *Element) GetFoundBy() int64

func (*Element) GetName

func (x *Element) GetName() string

func (*Element) GetParents

func (x *Element) GetParents() []string

func (*Element) GetPioneer

func (x *Element) GetPioneer() string

func (*Element) GetUses

func (x *Element) GetUses() int64

func (*Element) ProtoMessage

func (*Element) ProtoMessage()

func (*Element) ProtoReflect

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

func (*Element) Reset

func (x *Element) Reset()

func (*Element) String

func (x *Element) String() string

type ElementalClient

type ElementalClient interface {
	// Elements
	GetElem(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*Element, error)
	GetCombination(ctx context.Context, in *Combination, opts ...grpc.CallOption) (*CombinationResult, error)
	GetAll(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (Elemental_GetAllClient, error)
	// Savefile
	GetInv(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*Inventory, error)
	AddFound(ctx context.Context, in *SuggestionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Suggestions
	GetSuggestion(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*Suggestion, error)
	GetSuggestionCombos(ctx context.Context, in *Combination, opts ...grpc.CallOption) (*SuggestionCombinationResponse, error)
	UpSuggestion(ctx context.Context, in *SuggestionRequest, opts ...grpc.CallOption) (*VoteResponse, error)
	DownSuggestion(ctx context.Context, in *SuggestionRequest, opts ...grpc.CallOption) (*VoteResponse, error)
	CreateSugg(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	NewSugg(ctx context.Context, in *NewSuggestionRequest, opts ...grpc.CallOption) (*VoteResponse, error)
	// Random Suggestions
	RandomLonely(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*RandomCombinationResponse, error)
	UpAndComing(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*RandomCombinationResponse, error)
	// Recents
	GetRec(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Recents, error)
	WaitForNextRecent(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Elemental_WaitForNextRecentClient, error)
}

ElementalClient is the client API for Elemental 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 NewElementalClient

func NewElementalClient(cc grpc.ClientConnInterface) ElementalClient

type ElementalServer

type ElementalServer interface {
	// Elements
	GetElem(context.Context, *wrapperspb.StringValue) (*Element, error)
	GetCombination(context.Context, *Combination) (*CombinationResult, error)
	GetAll(*wrapperspb.StringValue, Elemental_GetAllServer) error
	// Savefile
	GetInv(context.Context, *wrapperspb.StringValue) (*Inventory, error)
	AddFound(context.Context, *SuggestionRequest) (*emptypb.Empty, error)
	// Suggestions
	GetSuggestion(context.Context, *wrapperspb.StringValue) (*Suggestion, error)
	GetSuggestionCombos(context.Context, *Combination) (*SuggestionCombinationResponse, error)
	UpSuggestion(context.Context, *SuggestionRequest) (*VoteResponse, error)
	DownSuggestion(context.Context, *SuggestionRequest) (*VoteResponse, error)
	CreateSugg(context.Context, *CreateRequest) (*emptypb.Empty, error)
	NewSugg(context.Context, *NewSuggestionRequest) (*VoteResponse, error)
	// Random Suggestions
	RandomLonely(context.Context, *wrapperspb.StringValue) (*RandomCombinationResponse, error)
	UpAndComing(context.Context, *wrapperspb.StringValue) (*RandomCombinationResponse, error)
	// Recents
	GetRec(context.Context, *emptypb.Empty) (*Recents, error)
	WaitForNextRecent(*emptypb.Empty, Elemental_WaitForNextRecentServer) error
	// contains filtered or unexported methods
}

ElementalServer is the server API for Elemental service. All implementations must embed UnimplementedElementalServer for forward compatibility

type Elemental_GetAllClient

type Elemental_GetAllClient interface {
	Recv() (*GetAllChunk, error)
	grpc.ClientStream
}

type Elemental_GetAllServer

type Elemental_GetAllServer interface {
	Send(*GetAllChunk) error
	grpc.ServerStream
}

type Elemental_WaitForNextRecentClient

type Elemental_WaitForNextRecentClient interface {
	Recv() (*emptypb.Empty, error)
	grpc.ClientStream
}

type Elemental_WaitForNextRecentServer

type Elemental_WaitForNextRecentServer interface {
	Send(*emptypb.Empty) error
	grpc.ServerStream
}

type GetAllChunk

type GetAllChunk struct {
	Elements []*Element `protobuf:"bytes,1,rep,name=Elements,proto3" json:"Elements,omitempty"`
	Count    int64      `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllChunk) Descriptor deprecated

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

Deprecated: Use GetAllChunk.ProtoReflect.Descriptor instead.

func (*GetAllChunk) GetCount

func (x *GetAllChunk) GetCount() int64

func (*GetAllChunk) GetElements

func (x *GetAllChunk) GetElements() []*Element

func (*GetAllChunk) ProtoMessage

func (*GetAllChunk) ProtoMessage()

func (*GetAllChunk) ProtoReflect

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

func (*GetAllChunk) Reset

func (x *GetAllChunk) Reset()

func (*GetAllChunk) String

func (x *GetAllChunk) String() string

type Inventory

type Inventory struct {
	Found []string `protobuf:"bytes,1,rep,name=Found,proto3" json:"Found,omitempty"`
	// contains filtered or unexported fields
}

func (*Inventory) Descriptor deprecated

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

Deprecated: Use Inventory.ProtoReflect.Descriptor instead.

func (*Inventory) GetFound

func (x *Inventory) GetFound() []string

func (*Inventory) ProtoMessage

func (*Inventory) ProtoMessage()

func (*Inventory) ProtoReflect

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

func (*Inventory) Reset

func (x *Inventory) Reset()

func (*Inventory) String

func (x *Inventory) String() string

type NewSuggestionRequest

type NewSuggestionRequest struct {
	Elem1      string      `protobuf:"bytes,1,opt,name=Elem1,proto3" json:"Elem1,omitempty"`
	Elem2      string      `protobuf:"bytes,2,opt,name=Elem2,proto3" json:"Elem2,omitempty"`
	Suggestion *Suggestion `protobuf:"bytes,3,opt,name=Suggestion,proto3" json:"Suggestion,omitempty"`
	// contains filtered or unexported fields
}

func (*NewSuggestionRequest) Descriptor deprecated

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

Deprecated: Use NewSuggestionRequest.ProtoReflect.Descriptor instead.

func (*NewSuggestionRequest) GetElem1

func (x *NewSuggestionRequest) GetElem1() string

func (*NewSuggestionRequest) GetElem2

func (x *NewSuggestionRequest) GetElem2() string

func (*NewSuggestionRequest) GetSuggestion

func (x *NewSuggestionRequest) GetSuggestion() *Suggestion

func (*NewSuggestionRequest) ProtoMessage

func (*NewSuggestionRequest) ProtoMessage()

func (*NewSuggestionRequest) ProtoReflect

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

func (*NewSuggestionRequest) Reset

func (x *NewSuggestionRequest) Reset()

func (*NewSuggestionRequest) String

func (x *NewSuggestionRequest) String() string

type RandomCombinationResponse

type RandomCombinationResponse struct {
	Elements []string `protobuf:"bytes,1,rep,name=Elements,proto3" json:"Elements,omitempty"`
	// contains filtered or unexported fields
}

func (*RandomCombinationResponse) Descriptor deprecated

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

Deprecated: Use RandomCombinationResponse.ProtoReflect.Descriptor instead.

func (*RandomCombinationResponse) GetElements

func (x *RandomCombinationResponse) GetElements() []string

func (*RandomCombinationResponse) ProtoMessage

func (*RandomCombinationResponse) ProtoMessage()

func (*RandomCombinationResponse) ProtoReflect

func (*RandomCombinationResponse) Reset

func (x *RandomCombinationResponse) Reset()

func (*RandomCombinationResponse) String

func (x *RandomCombinationResponse) String() string

type RecentCombination

type RecentCombination struct {
	Elem1 string `protobuf:"bytes,1,opt,name=Elem1,proto3" json:"Elem1,omitempty"`
	Elem2 string `protobuf:"bytes,2,opt,name=Elem2,proto3" json:"Elem2,omitempty"`
	Elem3 string `protobuf:"bytes,3,opt,name=Elem3,proto3" json:"Elem3,omitempty"`
	// contains filtered or unexported fields
}

func (*RecentCombination) Descriptor deprecated

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

Deprecated: Use RecentCombination.ProtoReflect.Descriptor instead.

func (*RecentCombination) GetElem1

func (x *RecentCombination) GetElem1() string

func (*RecentCombination) GetElem2

func (x *RecentCombination) GetElem2() string

func (*RecentCombination) GetElem3

func (x *RecentCombination) GetElem3() string

func (*RecentCombination) ProtoMessage

func (*RecentCombination) ProtoMessage()

func (*RecentCombination) ProtoReflect

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

func (*RecentCombination) Reset

func (x *RecentCombination) Reset()

func (*RecentCombination) String

func (x *RecentCombination) String() string

type Recents

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

func (*Recents) Descriptor deprecated

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

Deprecated: Use Recents.ProtoReflect.Descriptor instead.

func (*Recents) GetRecents

func (x *Recents) GetRecents() []*RecentCombination

func (*Recents) ProtoMessage

func (*Recents) ProtoMessage()

func (*Recents) ProtoReflect

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

func (*Recents) Reset

func (x *Recents) Reset()

func (*Recents) String

func (x *Recents) String() string

type Suggestion

type Suggestion struct {
	Creator string   `protobuf:"bytes,1,opt,name=Creator,proto3" json:"Creator,omitempty"`
	Name    string   `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	Votes   int64    `protobuf:"varint,3,opt,name=Votes,proto3" json:"Votes,omitempty"`
	Color   *Color   `protobuf:"bytes,4,opt,name=Color,proto3" json:"Color,omitempty"`
	Voted   []string `protobuf:"bytes,5,rep,name=Voted,proto3" json:"Voted,omitempty"`
	// contains filtered or unexported fields
}

func (*Suggestion) Descriptor deprecated

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

Deprecated: Use Suggestion.ProtoReflect.Descriptor instead.

func (*Suggestion) GetColor

func (x *Suggestion) GetColor() *Color

func (*Suggestion) GetCreator

func (x *Suggestion) GetCreator() string

func (*Suggestion) GetName

func (x *Suggestion) GetName() string

func (*Suggestion) GetVoted

func (x *Suggestion) GetVoted() []string

func (*Suggestion) GetVotes

func (x *Suggestion) GetVotes() int64

func (*Suggestion) ProtoMessage

func (*Suggestion) ProtoMessage()

func (*Suggestion) ProtoReflect

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

func (*Suggestion) Reset

func (x *Suggestion) Reset()

func (*Suggestion) String

func (x *Suggestion) String() string

type SuggestionCombinationResponse

type SuggestionCombinationResponse struct {
	Suggestions []string `protobuf:"bytes,1,rep,name=Suggestions,proto3" json:"Suggestions,omitempty"`
	// contains filtered or unexported fields
}

func (*SuggestionCombinationResponse) Descriptor deprecated

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

Deprecated: Use SuggestionCombinationResponse.ProtoReflect.Descriptor instead.

func (*SuggestionCombinationResponse) GetSuggestions

func (x *SuggestionCombinationResponse) GetSuggestions() []string

func (*SuggestionCombinationResponse) ProtoMessage

func (*SuggestionCombinationResponse) ProtoMessage()

func (*SuggestionCombinationResponse) ProtoReflect

func (*SuggestionCombinationResponse) Reset

func (x *SuggestionCombinationResponse) Reset()

func (*SuggestionCombinationResponse) String

type SuggestionRequest

type SuggestionRequest struct {
	Uid     string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
	Element string `protobuf:"bytes,2,opt,name=element,proto3" json:"element,omitempty"`
	// contains filtered or unexported fields
}

func (*SuggestionRequest) Descriptor deprecated

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

Deprecated: Use SuggestionRequest.ProtoReflect.Descriptor instead.

func (*SuggestionRequest) GetElement

func (x *SuggestionRequest) GetElement() string

func (*SuggestionRequest) GetUid

func (x *SuggestionRequest) GetUid() string

func (*SuggestionRequest) ProtoMessage

func (*SuggestionRequest) ProtoMessage()

func (*SuggestionRequest) ProtoReflect

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

func (*SuggestionRequest) Reset

func (x *SuggestionRequest) Reset()

func (*SuggestionRequest) String

func (x *SuggestionRequest) String() string

type UnimplementedAnarchyServer

type UnimplementedAnarchyServer struct {
}

UnimplementedAnarchyServer must be embedded to have forward compatible implementations.

func (UnimplementedAnarchyServer) AddFound

func (UnimplementedAnarchyServer) CreateElement

func (UnimplementedAnarchyServer) GetAll

func (UnimplementedAnarchyServer) GetCombination

func (UnimplementedAnarchyServer) GetElem

func (UnimplementedAnarchyServer) GetInv

func (UnimplementedAnarchyServer) GetRecents

func (UnimplementedAnarchyServer) WaitForNextRecent

type UnimplementedElementalServer

type UnimplementedElementalServer struct {
}

UnimplementedElementalServer must be embedded to have forward compatible implementations.

func (UnimplementedElementalServer) AddFound

func (UnimplementedElementalServer) CreateSugg

func (UnimplementedElementalServer) DownSuggestion

func (UnimplementedElementalServer) GetAll

func (UnimplementedElementalServer) GetCombination

func (UnimplementedElementalServer) GetElem

func (UnimplementedElementalServer) GetInv

func (UnimplementedElementalServer) GetRec

func (UnimplementedElementalServer) GetSuggestion

func (UnimplementedElementalServer) GetSuggestionCombos

func (UnimplementedElementalServer) NewSugg

func (UnimplementedElementalServer) RandomLonely

func (UnimplementedElementalServer) UpAndComing

func (UnimplementedElementalServer) UpSuggestion

func (UnimplementedElementalServer) WaitForNextRecent

type UnsafeAnarchyServer

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

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

type UnsafeElementalServer

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

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

type VoteResponse

type VoteResponse struct {
	Create bool `protobuf:"varint,1,opt,name=Create,proto3" json:"Create,omitempty"`
	// contains filtered or unexported fields
}

func (*VoteResponse) Descriptor deprecated

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

Deprecated: Use VoteResponse.ProtoReflect.Descriptor instead.

func (*VoteResponse) GetCreate

func (x *VoteResponse) GetCreate() bool

func (*VoteResponse) ProtoMessage

func (*VoteResponse) ProtoMessage()

func (*VoteResponse) ProtoReflect

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

func (*VoteResponse) Reset

func (x *VoteResponse) Reset()

func (*VoteResponse) String

func (x *VoteResponse) String() string

Jump to

Keyboard shortcuts

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