Documentation ¶
Index ¶
- Constants
- Variables
- type Field
- type FieldAccessorSet
- type FieldAccessorType
- type FieldOption
- type FieldOptionDDL
- type FieldType
- type Index
- type IndexKey
- type Interleave
- type InterleaveAnnotationType
- type MasterRef
- type Message
- type MessageAccessorSet
- type MessageAccessorType
- type MessageOption
- type MessageOptionDDL
- type TypeKind
Constants ¶
View Source
const ( FieldType_Bool = "bool" FieldType_Int32 = "int32" FieldType_Int64 = "int64" FieldType_String = "string" )
Variables ¶
View Source
var ClientFieldAccessorSet = NewFieldAccessorSet( FieldAccessorType_All, FieldAccessorType_OnlyClient, )
View Source
var ClientMessageAccessorSet = NewMessageAccessorSet( MessageAccessorType_OnlyClient, MessageAccessorType_OnlyClientWithCommonResponse, MessageAccessorType_ServerAndClient, MessageAccessorType_ServerAndClientWithCommonResponse, )
View Source
var ClientMessageCommonResponseAccessorSet = NewMessageAccessorSet( MessageAccessorType_OnlyClientWithCommonResponse, MessageAccessorType_ServerAndClientWithCommonResponse, )
View Source
var ServerFieldAccessorSet = NewFieldAccessorSet( FieldAccessorType_All, FieldAccessorType_OnlyServer, )
View Source
var ServerMessageAccessorSet = NewMessageAccessorSet( MessageAccessorType_OnlyServer, MessageAccessorType_ServerAndClient, MessageAccessorType_ServerAndClientWithCommonResponse, )
Functions ¶
This section is empty.
Types ¶
type FieldAccessorSet ¶
func NewFieldAccessorSet ¶
func NewFieldAccessorSet(accessorTypes ...FieldAccessorType) *FieldAccessorSet
func (FieldAccessorSet) Contains ¶
func (a FieldAccessorSet) Contains(accessorType FieldAccessorType) bool
type FieldAccessorType ¶
type FieldAccessorType int32
const ( // FieldAccessorType_All デフォルト値がALL FieldAccessorType_All FieldAccessorType = iota FieldAccessorType_OnlyServer FieldAccessorType_OnlyClient )
func ConvertFieldAccessorTypeFromProto ¶
func ConvertFieldAccessorTypeFromProto(in options.FieldOption_AccessorType) (FieldAccessorType, error)
type FieldOption ¶
type FieldOption struct { AccessorType FieldAccessorType DDL *FieldOptionDDL }
type FieldOptionDDL ¶
type Interleave ¶
type Interleave struct {
TableSnakeName string
}
type InterleaveAnnotationType ¶
type InterleaveAnnotationType int32
type Message ¶
type Message struct { Messages []*Message SnakeName string Comment string Fields []*Field Option *MessageOption }
type MessageAccessorSet ¶
func NewMessageAccessorSet ¶
func NewMessageAccessorSet(accessorTypes ...MessageAccessorType) *MessageAccessorSet
func (MessageAccessorSet) Contains ¶
func (a MessageAccessorSet) Contains(accessorType MessageAccessorType) bool
type MessageAccessorType ¶
type MessageAccessorType int32
const ( MessageAccessorType_OnlyServer MessageAccessorType = iota MessageAccessorType_OnlyClient MessageAccessorType_OnlyClientWithCommonResponse MessageAccessorType_ServerAndClient MessageAccessorType_ServerAndClientWithCommonResponse )
func ConvertMessageAccessorTypeFromProto ¶
func ConvertMessageAccessorTypeFromProto(in options.MessageOption_AccessorType) (MessageAccessorType, error)
type MessageOption ¶
type MessageOption struct { AccessorType MessageAccessorType DDL *MessageOptionDDL }
type MessageOptionDDL ¶
type MessageOptionDDL struct { Indexes []*Index // nilチェックが必要 Interleave *Interleave }
Click to show internal directories.
Click to hide internal directories.