user

package
v0.0.0-...-1858a95 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthUser = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowUser   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type Store

type Store interface {
	GetAllUsers(context.Context) ([]U, error)
	GetUsersByID(context.Context, []string) ([]U, error)
}

Store to retrieve users by all/batch/ID.

type U

type U struct {
	ID                   string    `protobuf:"bytes,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"`
	CreatedAt            time.Time `protobuf:"bytes,2,opt,name=CreatedAt,json=createdAt,stdtime" json:"CreatedAt"`
	UpdatedAt            time.Time `protobuf:"bytes,3,opt,name=UpdatedAt,json=updatedAt,stdtime" json:"UpdatedAt"`
	FirstName            string    `protobuf:"bytes,4,opt,name=FirstName,json=firstName,proto3" json:"FirstName,omitempty"`
	LastName             string    `protobuf:"bytes,5,opt,name=LastName,json=lastName,proto3" json:"LastName,omitempty"`
	Tags                 []string  `protobuf:"bytes,6,rep,name=Tags,json=tags" json:"Tags,omitempty"`
	TaskApplications     []string  `protobuf:"bytes,7,rep,name=TaskApplications,json=taskApplications" json:"TaskApplications,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func NewPopulatedU

func NewPopulatedU(r randyUser, easy bool) *U

func (*U) Descriptor

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

func (*U) Equal

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

func (*U) GetCreatedAt

func (m *U) GetCreatedAt() time.Time

func (*U) GetFirstName

func (m *U) GetFirstName() string

func (*U) GetID

func (m *U) GetID() string

func (*U) GetLastName

func (m *U) GetLastName() string

func (*U) GetTags

func (m *U) GetTags() []string

func (*U) GetTaskApplications

func (m *U) GetTaskApplications() []string

func (*U) GetUpdatedAt

func (m *U) GetUpdatedAt() time.Time

func (*U) GoString

func (this *U) GoString() string

func (*U) Marshal

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

func (*U) MarshalTo

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

func (*U) ProtoMessage

func (*U) ProtoMessage()

func (*U) Reset

func (m *U) Reset()

func (*U) Size

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

func (*U) String

func (this *U) String() string

func (*U) Unmarshal

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

func (*U) XXX_DiscardUnknown

func (m *U) XXX_DiscardUnknown()

func (*U) XXX_Marshal

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

func (*U) XXX_Merge

func (dst *U) XXX_Merge(src proto.Message)

func (*U) XXX_Size

func (m *U) XXX_Size() int

func (*U) XXX_Unmarshal

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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