Documentation ¶
Index ¶
- func MakeApproveMembersEndpoint(svc MembroService) endpoint.Endpoint
- func MakeDraftMembersEndpoint(svc MembroService) endpoint.Endpoint
- func MakeGetMembersEndpoint(svc MembroService) endpoint.Endpoint
- func MakeQueryMembersEndpoint(svc MembroService) endpoint.Endpoint
- func MakeRejectMembersEndpoint(svc MembroService) endpoint.Endpoint
- func MakeUpdateMembersEndpoint(svc MembroService) endpoint.Endpoint
- func MakeValidateTokensEndpoint(svc MembroService) endpoint.Endpoint
- type ApproveMembersRequest
- type ApproveMembersResponse
- type DraftMembersRequest
- type DraftMembersResponse
- type Endpoints
- type GetMembersRequest
- type GetMembersResponse
- type Member
- type MemberAddress
- type MemberBirth
- type MemberStatus
- type MembroService
- type OrganizationPayload
- type QueryMembersRequest
- type QueryMembersResponse
- type RejectMembersRequest
- type RejectMembersResponse
- type UpdateMembersRequest
- type UpdateMembersResponse
- type ValidateMembersRequest
- type ValidateMembersResponse
- type ValidateTokensRequest
- type ValidateTokensResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeApproveMembersEndpoint ¶
func MakeApproveMembersEndpoint(svc MembroService) endpoint.Endpoint
func MakeDraftMembersEndpoint ¶
func MakeDraftMembersEndpoint(svc MembroService) endpoint.Endpoint
func MakeGetMembersEndpoint ¶
func MakeGetMembersEndpoint(svc MembroService) endpoint.Endpoint
func MakeQueryMembersEndpoint ¶
func MakeQueryMembersEndpoint(svc MembroService) endpoint.Endpoint
func MakeRejectMembersEndpoint ¶
func MakeRejectMembersEndpoint(svc MembroService) endpoint.Endpoint
func MakeUpdateMembersEndpoint ¶
func MakeUpdateMembersEndpoint(svc MembroService) endpoint.Endpoint
func MakeValidateTokensEndpoint ¶
func MakeValidateTokensEndpoint(svc MembroService) endpoint.Endpoint
Types ¶
type ApproveMembersRequest ¶
type ApproveMembersRequest struct {
Organizations []*OrganizationPayload `json:"organizations"`
}
type ApproveMembersResponse ¶
type ApproveMembersResponse struct { Organizations []*OrganizationPayload `json:"organizations"` Err string `json:"err,omitempty"` }
type DraftMembersRequest ¶
type DraftMembersRequest struct {
Organizations []*OrganizationPayload `json:"organizations"`
}
type DraftMembersResponse ¶
type DraftMembersResponse struct { DraftMembersRequest Err string `json:"err,omitempty"` }
type GetMembersRequest ¶
type GetMembersRequest struct {
Organizations []*OrganizationPayload `json:"organizations"`
}
type GetMembersResponse ¶
type GetMembersResponse struct { Organizations []*OrganizationPayload `json:"organizations"` Err string `json:"err,omitempty"` }
type Member ¶
type Member struct { ID string `json:"id"` Token string `json:"token"` Status MemberStatus `json:"status"` Internal string `json:"internal"` Name string `json:"name"` Code string `json:"code"` Birth MemberBirth `json:"birth" datastore:",flatten"` Address MemberAddress `json:"address" datastore:",flatten"` Document string `json:"document"` Email string `json:"email"` Phone string `json:"phone"` }
func (Member) ResolveContact ¶
func (m Member) ResolveContact() interface{}
func (Member) ResolveEmail ¶
type MemberAddress ¶
type MemberBirth ¶
type MemberStatus ¶
type MemberStatus string
const ( MemberStatusDraft MemberStatus = "DRAFT" MemberStatusPending MemberStatus = "PENDING" MemberStatusApproved MemberStatus = "APPROVED" MemberStatusRejected MemberStatus = "REJECTED" )
type MembroService ¶
type MembroService interface { CountMembers(ctx context.Context, orgID string, status MemberStatus) (int, error) QueryMembers(ctx context.Context, orgID string, offset int, limit int, status MemberStatus, members *[]*Member) error GetMembers(ctx context.Context, orgID string, memberIDs []string, members []*Member) error GetMemberByToken(ctx context.Context, orgID string, token string) (*Member, error) DraftMembers(ctx context.Context, orgID string, draftMembers []*Member) error UpdateMembers(ctx context.Context, orgID string, members []*Member) error UpdateMembersStatus(ctx context.Context, orgID string, members []*Member, newStatus MemberStatus) error ValidateToken(ctx context.Context, orgID string, token string) error }
type OrganizationPayload ¶
type QueryMembersRequest ¶
type QueryMembersRequest struct {
Organizations []*OrganizationPayload `json:"organizations"`
}
type QueryMembersResponse ¶
type QueryMembersResponse struct { Organizations []*OrganizationPayload `json:"organizations"` Err string `json:"err,omitempty"` }
type RejectMembersRequest ¶
type RejectMembersRequest struct {
Organizations []*OrganizationPayload `json:"organizations"`
}
type RejectMembersResponse ¶
type RejectMembersResponse struct { Organizations []*OrganizationPayload `json:"organizations"` Err string `json:"err,omitempty"` }
type UpdateMembersRequest ¶
type UpdateMembersRequest struct {
Organizations []*OrganizationPayload `json:"organizations"`
}
type UpdateMembersResponse ¶
type UpdateMembersResponse struct { Organizations []*OrganizationPayload `json:"organizations"` Err string `json:"err,omitempty"` }
type ValidateMembersRequest ¶
type ValidateMembersRequest struct {
Organizations []*OrganizationPayload `json:"organizations"`
}
type ValidateMembersResponse ¶
type ValidateMembersResponse struct { ValidateMembersRequest Err string `json:"err,omitempty"` }
type ValidateTokensRequest ¶
type ValidateTokensRequest struct {
Organizations []*OrganizationPayload `json:"organizations"`
}
type ValidateTokensResponse ¶
type ValidateTokensResponse struct { ValidateTokensRequest Err string `json:"err,omitempty"` }
Click to show internal directories.
Click to hide internal directories.