Documentation
¶
Index ¶
- Variables
- type Store
- type U
- func (*U) Descriptor() ([]byte, []int)
- func (this *U) Equal(that interface{}) bool
- func (m *U) GetCreatedAt() time.Time
- func (m *U) GetFirstName() string
- func (m *U) GetID() string
- func (m *U) GetLastName() string
- func (m *U) GetTags() []string
- func (m *U) GetTaskApplications() []string
- func (m *U) GetUpdatedAt() time.Time
- func (this *U) GoString() string
- func (m *U) Marshal() (dAtA []byte, err error)
- func (m *U) MarshalTo(dAtA []byte) (int, error)
- func (*U) ProtoMessage()
- func (m *U) Reset()
- func (m *U) Size() (n int)
- func (this *U) String() string
- func (m *U) Unmarshal(dAtA []byte) error
- func (m *U) XXX_DiscardUnknown()
- func (m *U) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *U) XXX_Merge(src proto.Message)
- func (m *U) XXX_Size() int
- func (m *U) XXX_Unmarshal(b []byte) error
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 (*U) Descriptor ¶
func (*U) GetCreatedAt ¶
func (*U) GetFirstName ¶
func (*U) GetLastName ¶
func (*U) GetTaskApplications ¶
func (*U) GetUpdatedAt ¶
func (*U) ProtoMessage ¶
func (*U) ProtoMessage()
func (*U) XXX_DiscardUnknown ¶
func (m *U) XXX_DiscardUnknown()
func (*U) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.