Documentation ¶
Index ¶
- type EventRequest
- type Span
- type SpanConfig
- type TypeEvent
- type User
- type UserCreate
- type UserCreateRequestV1
- type UserCreateResponseV1
- type UserEventRequest
- func NewUserCreatedEventRequest(ctx context.Context, userId, firstName, lastName string, birthDate time.Time) UserEventRequest
- func NewUserDeletedEventRequest(ctx context.Context, userId, firstName, lastName string, birthDate time.Time) UserEventRequest
- func NewUserUpdatedEventRequest(ctx context.Context, userId, firstName, lastName string, birthDate time.Time) UserEventRequest
- type UserFilter
- type UserGetResponseV1
- type UserListResponseV1
- type UserProjection
- type UserSearch
- type UserUpdate
- type UserUpdateRequestV1
- type UserUpdateResponseV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventRequest ¶
type Span ¶
type Span struct { Name string `validate:"required"` Cid string `validate:"required"` Resource string `validate:"required"` Version string `validate:"required"` OrgId string `validate:"required"` Line int `validate:"required"` FuncName string `validate:"required"` FileName string `validate:"required"` Custom map[string]interface{} `validate:"required"` InternalSpan zipkin.Span }
type SpanConfig ¶
func WithCustom ¶
func WithCustom(k string, v interface{}) SpanConfig
func WithName ¶
func WithName(v string) SpanConfig
func WithOrgId ¶
func WithOrgId(v string) SpanConfig
type User ¶
type User struct { Id *string `projection:"id"` FirstName *string `projection:"first_name" ` LastName *string `projection:"last_name" ` BirthDate *time.Time `projection:"birth_date" ` CreatedAt time.Time `projection:"created_at"` UpdatedAt time.Time `projection:"updated_at"` DeletedAt *time.Time `projection:"deleted_at"` }
type UserCreate ¶
type UserCreateRequestV1 ¶
type UserCreateRequestV1 struct { FirstName string `json:"first_name" validate:"required"` LastName string `json:"last_name" validate:"required"` BirthDate times.JsonTime `json:"birth_date" validate:"required"` }
func (*UserCreateRequestV1) UserCreate ¶
func (c *UserCreateRequestV1) UserCreate() UserCreate
type UserCreateResponseV1 ¶
type UserEventRequest ¶
type UserEventRequest struct { UserId string `json:"user_id" validate:"required"` FirstName string `json:"first_name" validate:"required"` LastName string `json:"last_name" validate:"required"` BirthDate times.JsonTime `json:"birth_date" validate:"required"` // contains filtered or unexported fields }
func (UserEventRequest) EventId ¶
func (p UserEventRequest) EventId() string
func (UserEventRequest) EventType ¶
func (p UserEventRequest) EventType() string
func (UserEventRequest) Operation ¶
func (p UserEventRequest) Operation() string
type UserFilter ¶
type UserGetResponseV1 ¶
type UserListResponseV1 ¶
type UserListResponseV1 struct {
Users []UserGetResponseV1 `json:"users"`
}
type UserProjection ¶
type UserProjection struct { Id bool `projection:"id"` FirstName bool `projection:"first_name"` LastName bool `projection:"last_name"` BirthDate bool `projection:"birth_date"` CreatedAt bool `projection:"created_at"` UpdatedAt bool `projection:"updated_at"` DeletedAt bool `projection:"deleted_at"` }
type UserSearch ¶
type UserSearch struct { Filter UserFilter Projection UserProjection }
type UserUpdate ¶
type UserUpdateRequestV1 ¶
type UserUpdateRequestV1 struct { FirstName *string `json:"first_name" validate:"omitempty,min=1"` LastName *string `json:"last_name" validate:"omitempty,min=1"` BirthDate *times.JsonTime `json:"birth_date" validate:"omitempty,min=1"` }
func (*UserUpdateRequestV1) UserUpdate ¶
func (c *UserUpdateRequestV1) UserUpdate(userId string) UserUpdate
Click to show internal directories.
Click to hide internal directories.