dto

package
v0.0.0-...-37f97d0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthAccount        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAccount          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAccount = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Auth

type Auth struct {
	ID    github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,1,opt,name=ID,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"ID"`
	Token github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,2,opt,name=Token,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"Token"`
}

Auth common struct used to authenticate.

func NewPopulatedAuth

func NewPopulatedAuth(r randyAccount, easy bool) *Auth

func (*Auth) Descriptor

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

func (*Auth) Equal

func (this *Auth) Equal(that interface{}) bool

func (*Auth) GoString

func (this *Auth) GoString() string

func (*Auth) Marshal

func (m *Auth) Marshal() (dAtA []byte, err error)

func (*Auth) MarshalTo

func (m *Auth) MarshalTo(dAtA []byte) (int, error)

func (*Auth) MarshalToSizedBuffer

func (m *Auth) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Auth) ProtoMessage

func (*Auth) ProtoMessage()

func (*Auth) Reset

func (m *Auth) Reset()

func (*Auth) Size

func (m *Auth) Size() (n int)

func (*Auth) String

func (this *Auth) String() string

func (*Auth) Unmarshal

func (m *Auth) Unmarshal(dAtA []byte) error

func (*Auth) XXX_DiscardUnknown

func (m *Auth) XXX_DiscardUnknown()

func (*Auth) XXX_Marshal

func (m *Auth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Auth) XXX_Merge

func (m *Auth) XXX_Merge(src proto.Message)

func (*Auth) XXX_Size

func (m *Auth) XXX_Size() int

func (*Auth) XXX_Unmarshal

func (m *Auth) XXX_Unmarshal(b []byte) error

type Signin

type Signin struct {
	Email    string `protobuf:"bytes,1,opt,name=Email,proto3" json:"Email,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"`
}

Signin request type for signin route.

func NewPopulatedSignin

func NewPopulatedSignin(r randyAccount, easy bool) *Signin

func (Signin) Check

func (r Signin) Check() error

Check returns if subscription request is valid.

func (*Signin) Descriptor

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

func (*Signin) Equal

func (this *Signin) Equal(that interface{}) bool

func (*Signin) GetEmail

func (m *Signin) GetEmail() string

func (*Signin) GetPassword

func (m *Signin) GetPassword() string

func (*Signin) GoString

func (this *Signin) GoString() string

func (*Signin) Marshal

func (m *Signin) Marshal() (dAtA []byte, err error)

func (*Signin) MarshalTo

func (m *Signin) MarshalTo(dAtA []byte) (int, error)

func (*Signin) MarshalToSizedBuffer

func (m *Signin) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Signin) ProtoMessage

func (*Signin) ProtoMessage()

func (*Signin) Reset

func (m *Signin) Reset()

func (*Signin) Size

func (m *Signin) Size() (n int)

func (*Signin) String

func (this *Signin) String() string

func (*Signin) Unmarshal

func (m *Signin) Unmarshal(dAtA []byte) error

func (*Signin) XXX_DiscardUnknown

func (m *Signin) XXX_DiscardUnknown()

func (*Signin) XXX_Marshal

func (m *Signin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Signin) XXX_Merge

func (m *Signin) XXX_Merge(src proto.Message)

func (*Signin) XXX_Size

func (m *Signin) XXX_Size() int

func (*Signin) XXX_Unmarshal

func (m *Signin) XXX_Unmarshal(b []byte) error

type Subscribe

type Subscribe struct {
	Alias    string `protobuf:"bytes,1,opt,name=Alias,proto3" json:"Alias,omitempty"`
	Email    string `protobuf:"bytes,2,opt,name=Email,proto3" json:"Email,omitempty"`
	Password string `protobuf:"bytes,3,opt,name=Password,proto3" json:"Password,omitempty"`
}

Subscribe request type for subscribe route.

func NewPopulatedSubscribe

func NewPopulatedSubscribe(r randyAccount, easy bool) *Subscribe

func (Subscribe) Check

func (r Subscribe) Check() error

Check returns if subscription request is valid.

func (*Subscribe) Descriptor

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

func (*Subscribe) Equal

func (this *Subscribe) Equal(that interface{}) bool

func (*Subscribe) GetAlias

func (m *Subscribe) GetAlias() string

func (*Subscribe) GetEmail

func (m *Subscribe) GetEmail() string

func (*Subscribe) GetPassword

func (m *Subscribe) GetPassword() string

func (*Subscribe) GoString

func (this *Subscribe) GoString() string

func (*Subscribe) Marshal

func (m *Subscribe) Marshal() (dAtA []byte, err error)

func (*Subscribe) MarshalTo

func (m *Subscribe) MarshalTo(dAtA []byte) (int, error)

func (*Subscribe) MarshalToSizedBuffer

func (m *Subscribe) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Subscribe) ProtoMessage

func (*Subscribe) ProtoMessage()

func (*Subscribe) Reset

func (m *Subscribe) Reset()

func (*Subscribe) Size

func (m *Subscribe) Size() (n int)

func (*Subscribe) String

func (this *Subscribe) String() string

func (*Subscribe) Unmarshal

func (m *Subscribe) Unmarshal(dAtA []byte) error

func (*Subscribe) XXX_DiscardUnknown

func (m *Subscribe) XXX_DiscardUnknown()

func (*Subscribe) XXX_Marshal

func (m *Subscribe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Subscribe) XXX_Merge

func (m *Subscribe) XXX_Merge(src proto.Message)

func (*Subscribe) XXX_Size

func (m *Subscribe) XXX_Size() int

func (*Subscribe) XXX_Unmarshal

func (m *Subscribe) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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