commonv1

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Category_name = map[int32]string{
		0: "CATEGORY_UNSPECIFIED",
		1: "CATEGORY_DRAMA",
		2: "CATEGORY_HORROR",
	}
	Category_value = map[string]int32{
		"CATEGORY_UNSPECIFIED": 0,
		"CATEGORY_DRAMA":       1,
		"CATEGORY_HORROR":      2,
	}
)

Enum value maps for Category.

View Source
var Category_Enum = graphql.NewEnum(graphql.EnumConfig{
	Name: "Category",
	Values: graphql.EnumValueConfigMap{
		"CATEGORY_UNSPECIFIED": &graphql.EnumValueConfig{Value: Category_CATEGORY_UNSPECIFIED},
		"CATEGORY_DRAMA":       &graphql.EnumValueConfig{Value: Category_CATEGORY_DRAMA},
		"CATEGORY_HORROR":      &graphql.EnumValueConfig{Value: Category_CATEGORY_HORROR},
	},
})
View Source
var Character_Input = graphql.NewInputObject(graphql.InputObjectConfig{
	Name: "Character_Input",
	Fields: graphql.InputObjectConfigFieldMap{
		"name": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
		"role": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
	},
})
View Source
var Character_Object = graphql.NewObject(graphql.ObjectConfig{
	Name: "Character",
	Fields: graphql.Fields{
		"name": &graphql.Field{
			Type: graphql.String,
		},
		"role": &graphql.Field{
			Type: graphql.String,
		},
	},
	Description: "",
})
View Source
var File_common_v1_common_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Category

type Category int32
const (
	Category_CATEGORY_UNSPECIFIED Category = 0
	Category_CATEGORY_DRAMA       Category = 1
	Category_CATEGORY_HORROR      Category = 2
)

func (Category) Descriptor

func (Category) Descriptor() protoreflect.EnumDescriptor

func (Category) Enum

func (x Category) Enum() *Category

func (Category) EnumDescriptor deprecated

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

Deprecated: Use Category.Descriptor instead.

func (Category) Number

func (x Category) Number() protoreflect.EnumNumber

func (Category) String

func (x Category) String() string

func (Category) Type

type Character

type Character struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (*Character) Argument

Argument ...

func (*Character) Descriptor deprecated

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

Deprecated: Use Character.ProtoReflect.Descriptor instead.

func (*Character) GetName

func (x *Character) GetName() string

func (*Character) GetRole

func (x *Character) GetRole() string

func (*Character) Object

func (*Character) Object() *graphql.Object

Object ...

func (*Character) Output

func (*Character) Output() graphql.Output

Output ...

func (*Character) ProtoMessage

func (*Character) ProtoMessage()

func (*Character) ProtoReflect

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

func (*Character) Reset

func (x *Character) Reset()

func (*Character) Schema

func (*Character) Schema() map[string]interface{}

Schema ...

func (*Character) String

func (x *Character) String() string

func (*Character) UnmarshalJSON

func (o *Character) UnmarshalJSON(b []byte) error

UnmarshalJSON ...

func (*Character) UnmarshalMap

func (o *Character) UnmarshalMap(values map[string]interface{})

UnmarshalMap populates struct fields from a map, handling decoding for special fields.

Jump to

Keyboard shortcuts

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