Documentation
¶
Index ¶
- Constants
- Variables
- func ArrayReferenceEqual(a, b []Reference) bool
- func AvatarDecode(encodedImage string) []byte
- func AvatarEncode(image []byte) string
- func Clone[T any](in T) *T
- func Diff[T any](a, b T) string
- func Equal(a, b any, c Comparer) bool
- func EqualCommon(a, b Common) bool
- func EqualFormat(aa, bb any, c Comparer) bool
- func Load(filename string, data any, validation bool) error
- func NilOrEqualDate(a, b *Date) bool
- func NilOrEqualReference(a, b Reference) bool
- func NilOrEqualTime(a, b *time.Time) bool
- func Store(filename string, data any) error
- func TeamPermissionSplit(permission TeamPermission) (unit, access string)
- type Attachment
- type CI
- type Comment
- type Common
- func (c Common) Clone() Interface
- func (c *Common) GetID() string
- func (c Common) GetMarkdowns() []markdown.Content
- func (c *Common) GetName() string
- func (c *Common) GetReferences() References
- func (c *Common) HasName() bool
- func (c *Common) IsNil() bool
- func (c Common) IsUpToDate(Interface) bool
- func (c *Common) SetID(id string)
- func (c *Common) SetName(string)
- func (c *Common) String() string
- type CompareInfo
- type CompareTransformFunc
- type Comparer
- type Date
- type DownloadFuncType
- type Forge
- type ForkReference
- type Interface
- type Issue
- type Label
- type LabelReference
- type Milestone
- type MilestoneReference
- type Organization
- type OrganizationReference
- type Project
- func (o Project) Clone() Interface
- func (o *Project) GetMarkdowns() []markdown.Content
- func (o *Project) GetName() string
- func (o *Project) GetReferences() References
- func (o *Project) HasName() bool
- func (o *Project) Init() *Project
- func (o *Project) SetName(name string)
- func (o *Project) String() string
- func (o *Project) UnmarshalJSON(b []byte) error
- type ProjectReference
- type PullRequest
- func (o PullRequest) Clone() Interface
- func (o *PullRequest) GetMarkdowns() []markdown.Content
- func (o *PullRequest) GetReferences() References
- func (o *PullRequest) Init() *PullRequest
- func (o *PullRequest) IsForkPullRequest() bool
- func (o *PullRequest) String() string
- func (o *PullRequest) UnmarshalJSON(b []byte) error
- type PullRequestBranch
- type PullRequestFetchFunc
- type Reaction
- type Reference
- func NewForkReference(reference string) Reference
- func NewLabelReference(reference string) Reference
- func NewMilestoneReference(reference string) Reference
- func NewOrganizationReference(reference string) Reference
- func NewProjectReference(reference string) Reference
- func NewReference(reference string) Reference
- func NewRepositoryReference(reference string) Reference
- func NewTopicReference(reference string) Reference
- func NewUserReference(reference string) Reference
- type ReferenceImplementation
- func (o ReferenceImplementation) Equal(other ReferenceImplementation) bool
- func (o *ReferenceImplementation) Get() string
- func (o *ReferenceImplementation) GetIDAsInt() int64
- func (o *ReferenceImplementation) GetIDAsString() string
- func (o *ReferenceImplementation) GetRequired() bool
- func (o *ReferenceImplementation) IsNil() bool
- func (o *ReferenceImplementation) MarshalJSON() ([]byte, error)
- func (o *ReferenceImplementation) Set(reference string)
- func (o *ReferenceImplementation) SetRequired(required bool)
- func (o *ReferenceImplementation) String() string
- func (o *ReferenceImplementation) UnmarshalJSON(b []byte) error
- type References
- type Release
- type Repository
- type RepositoryReference
- type Review
- type ReviewComment
- type Team
- func (o Team) Clone() Interface
- func (o *Team) GetMarkdowns() []markdown.Content
- func (o *Team) GetName() string
- func (o *Team) HasName() bool
- func (o *Team) Init() *Team
- func (o Team) IsAdmin() bool
- func (o *Team) SetName(name string)
- func (o *Team) String() string
- func (o *Team) UnmarshalJSON(b []byte) error
- type TeamMember
- func (o TeamMember) Clone() Interface
- func (o *TeamMember) GetName() string
- func (o *TeamMember) GetReferences() References
- func (o *TeamMember) HasName() bool
- func (o *TeamMember) Init() *TeamMember
- func (o *TeamMember) SetName(name string)
- func (o *TeamMember) String() string
- func (o *TeamMember) UnmarshalJSON(b []byte) error
- type TeamPermission
- type TeamProject
- func (o TeamProject) Clone() Interface
- func (o *TeamProject) GetName() string
- func (o *TeamProject) GetReferences() References
- func (o *TeamProject) HasName() bool
- func (o *TeamProject) Init() *TeamProject
- func (o *TeamProject) SetName(name string)
- func (o *TeamProject) String() string
- func (o *TeamProject) UnmarshalJSON(b []byte) error
- type Topic
- type TopicReference
- type User
- type UserReference
Constants ¶
View Source
const ( IssueStateOpen = "open" IssueStateClosed = "closed" )
View Source
const ( MilestoneStateOpen = "open" MilestoneStateClosed = "closed" )
View Source
const ( PullRequestStateOpen = "open" PullRequestStateClosed = "closed" )
View Source
const ( ResourceAttachment = "attachment" ResourceAttachments = "attachments" ResourceComment = "comment" ResourceComments = "comments" ResourceIssue = "issue" ResourceIssues = "issues" ResourceLabel = "label" ResourceLabels = "labels" ResourceMilestone = "milestone" ResourceMilestones = "milestones" ResourceOrganization = "organization" ResourceOrganizations = "organizations" ResourceProject = "project" ResourceProjects = "projects" ResourcePullRequest = "pull_request" ResourcePullRequests = "pull_requests" ResourceReaction = "reaction" ResourceReactions = "reactions" ResourceRelease = "release" ResourceReleases = "releases" ResourceRepository = "repository" ResourceRepositories = "repositories" ResourceReview = "review" ResourceReviews = "reviews" ResourceReviewComment = "reviewcomment" ResourceReviewComments = "reviewcomments" ResourceTeam = "team" ResourceTeams = "teams" ResourceTeamMember = "teammember" ResourceTeamMembers = "teammembers" ResourceTeamProject = "teamproject" ResourceTeamProjects = "teamprojects" ResourceTopic = "topic" ResourceTopics = "topics" ResourceUser = "user" ResourceUsers = "users" ResourceForge = "forge" )
View Source
const ( ReviewStatePending = "PENDING" ReviewStateApproved = "APPROVED" ReviewStateChangesRequested = "CHANGES_REQUESTED" ReviewStateCommented = "COMMENTED" ReviewStateRequestReview = "REQUEST_REVIEW" ReviewStateUnknown = "" )
View Source
const ( TeamPermissionAdmin = "admin" TeamPermissionRepository = "repository" TeamPermissionIssue = "issue" TeamPermissionPullRequest = "pull_request" TeamPermissionRelease = "release" )
View Source
const ( TeamAccessNone = "none" TeamAccessRead = "read" TeamAccessWrite = "write" )
View Source
const RepositoryNameDefault = "vcs"
View Source
const TeamPermissionSeparator = ":"
Variables ¶
View Source
var Nil = &Common{}
Functions ¶
func ArrayReferenceEqual ¶ added in v3.11.16
func AvatarDecode ¶ added in v3.11.24
func AvatarEncode ¶ added in v3.11.24
func EqualCommon ¶ added in v3.11.25
func EqualFormat ¶ added in v3.11.21
func NilOrEqualDate ¶ added in v3.11.21
func NilOrEqualReference ¶ added in v3.11.16
func NilOrEqualTime ¶ added in v3.11.4
func TeamPermissionSplit ¶ added in v3.11.25
func TeamPermissionSplit(permission TeamPermission) (unit, access string)
Types ¶
type Attachment ¶ added in v3.11.0
type Attachment struct {
Common `compare:"ignore"`
Name string `json:"name,omitempty"`
ContentType string `json:"content_type,omitempty"`
Size int64 `json:"size,omitempty"`
DownloadCount int64 `json:"download_count,omitempty"`
Created time.Time `json:"created,omitempty"`
SHA256 string `json:"sha256,omitempty"`
DownloadFunc DownloadFuncType `json:"-" compare:"ignore"`
}
func (Attachment) Clone ¶ added in v3.11.0
func (o Attachment) Clone() Interface
func (*Attachment) Init ¶ added in v3.11.16
func (o *Attachment) Init() *Attachment
func (*Attachment) String ¶ added in v3.11.25
func (o *Attachment) String() string
func (*Attachment) UnmarshalJSON ¶ added in v3.11.16
func (o *Attachment) UnmarshalJSON(b []byte) error
type CI ¶ added in v3.4.0
type CI struct {
Common `compare:"ignore"`
}
func (*CI) UnmarshalJSON ¶ added in v3.11.16
type Comment ¶
type Comment struct {
Common `compare:"ignore"`
PosterID Reference `json:"poster_id,omitempty"`
Created time.Time `json:"created,omitempty"`
Updated time.Time `json:"updated,omitempty"`
Content markdown.Content `json:"content,omitempty"`
}
func (*Comment) GetMarkdowns ¶ added in v3.11.28
func (*Comment) GetReferences ¶
func (o *Comment) GetReferences() References
func (*Comment) UnmarshalJSON ¶ added in v3.11.16
type Common ¶
type Common struct {
Index Reference `json:"index"`
}
func (Common) GetMarkdowns ¶ added in v3.11.28
func (*Common) GetReferences ¶
func (c *Common) GetReferences() References
func (Common) IsUpToDate ¶ added in v3.11.4
type CompareInfo ¶ added in v3.11.21
type CompareInfo interface {
GetIgnore() bool
SetIgnore(ignore bool) CompareInfo
GetTransform() CompareTransformFunc
SetTransform(transform CompareTransformFunc) CompareInfo
Transform(v any) any
}
func NewCompareInfo ¶ added in v3.11.21
func NewCompareInfo() CompareInfo
type CompareTransformFunc ¶ added in v3.11.21
type Comparer ¶
type Comparer interface {
GetFormatCompareInfo(o any, field string) CompareInfo
}
type DownloadFuncType ¶
type DownloadFuncType func() io.ReadCloser
type Forge ¶
func (*Forge) UnmarshalJSON ¶ added in v3.11.16
type ForkReference ¶ added in v3.11.16
type ForkReference struct {
ReferenceImplementation
}
type Interface ¶
type Issue ¶
type Issue struct {
Common `compare:"ignore"`
PosterID Reference `json:"poster_id,omitempty"`
Assignees []Reference `json:"assignees,omitempty"`
Labels []Reference `json:"labels,omitempty"`
Title string `json:"title,omitempty"`
Content markdown.Content `json:"content,omitempty"`
Milestone Reference `json:"milestone,omitempty"`
State string `json:"state,omitempty"` // open, closed
IsLocked bool `json:"is_locked"`
Created time.Time `json:"created,omitempty"`
Updated time.Time `json:"updated,omitempty"`
Closed *time.Time `json:"closed,omitempty"`
}
func (*Issue) GetMarkdowns ¶ added in v3.11.28
func (*Issue) GetReferences ¶
func (o *Issue) GetReferences() References
func (*Issue) UnmarshalJSON ¶ added in v3.11.16
type Label ¶
type Label struct {
Common `compare:"ignore"`
Name string `json:"name,omitempty"`
Color string `json:"color,omitempty"`
Description string `json:"description,omitempty"`
}
func (*Label) UnmarshalJSON ¶ added in v3.11.16
type LabelReference ¶ added in v3.11.16
type LabelReference struct {
ReferenceImplementation
}
type Milestone ¶
type Milestone struct {
Common `compare:"ignore"`
Title string `json:"title,omitempty"`
Description markdown.Content `json:"description,omitempty"`
Deadline *Date `json:"deadline,omitempty"`
Created time.Time `json:"created,omitempty"`
Updated *time.Time `json:"updated,omitempty"`
Closed *time.Time `json:"closed,omitempty"`
State string `json:"state,omitempty"` // open, closed
}
func (*Milestone) GetMarkdowns ¶ added in v3.11.28
func (*Milestone) UnmarshalJSON ¶ added in v3.11.16
type MilestoneReference ¶ added in v3.11.16
type MilestoneReference struct {
ReferenceImplementation
}
type Organization ¶
type Organization struct {
Common `compare:"ignore"`
FullName string `json:"full_name,omitempty"`
Name string `json:"name,omitempty"`
Avatar string `json:"avatar,omitempty"`
}
func (Organization) Clone ¶
func (o Organization) Clone() Interface
func (*Organization) GetName ¶
func (o *Organization) GetName() string
func (*Organization) HasName ¶ added in v3.11.5
func (o *Organization) HasName() bool
func (*Organization) Init ¶ added in v3.11.16
func (o *Organization) Init() *Organization
func (*Organization) SetName ¶ added in v3.11.5
func (o *Organization) SetName(name string)
func (*Organization) String ¶ added in v3.11.25
func (o *Organization) String() string
func (*Organization) UnmarshalJSON ¶ added in v3.11.16
func (o *Organization) UnmarshalJSON(b []byte) error
type OrganizationReference ¶ added in v3.11.16
type OrganizationReference struct {
ReferenceImplementation
}
type Project ¶
type Project struct {
Common `compare:"ignore"`
Name string `json:"name,omitempty"`
IsPrivate bool `json:"is_private"`
IsMirror bool `json:"is_mirror"`
Description markdown.Content `json:"description,omitempty"`
Avatar string `json:"avatar,omitempty"`
DefaultBranch string `json:"default_branch,omitempty"`
Forked Reference `json:"forked,omitempty"`
HasWiki bool `json:"has_wiki"`
Created time.Time `json:"created,omitempty"`
Updated time.Time `json:"updated,omitempty"`
Topics []Reference `json:"topics,omitempty"`
}
func (*Project) GetMarkdowns ¶ added in v3.11.28
func (*Project) GetReferences ¶
func (o *Project) GetReferences() References
func (*Project) UnmarshalJSON ¶ added in v3.11.16
type ProjectReference ¶ added in v3.11.16
type ProjectReference struct {
ReferenceImplementation
}
type PullRequest ¶
type PullRequest struct {
Common `compare:"ignore"`
PosterID Reference `json:"poster_id,omitempty"`
Title string `json:"title,omitempty"`
Content markdown.Content `json:"content,omitempty"`
Milestone Reference `json:"milestone,omitempty"`
State string `json:"state,omitempty"` // open, closed
IsLocked bool `json:"is_locked"`
Created time.Time `json:"created,omitempty"`
Updated time.Time `json:"updated,omitempty"`
Closed *time.Time `json:"closed,omitempty"`
Merged bool `json:"merged"`
MergedTime *time.Time `json:"merged_time,omitempty"`
MergeCommitSHA string `json:"merged_commit_sha,omitempty"`
Head PullRequestBranch `json:"head,omitempty"`
Base PullRequestBranch `json:"base,omitempty"`
FetchFunc PullRequestFetchFunc `json:"-" compare:"ignore"`
}
func (PullRequest) Clone ¶
func (o PullRequest) Clone() Interface
func (*PullRequest) GetMarkdowns ¶ added in v3.11.28
func (o *PullRequest) GetMarkdowns() []markdown.Content
func (*PullRequest) GetReferences ¶
func (o *PullRequest) GetReferences() References
func (*PullRequest) Init ¶ added in v3.11.16
func (o *PullRequest) Init() *PullRequest
func (*PullRequest) IsForkPullRequest ¶
func (o *PullRequest) IsForkPullRequest() bool
func (*PullRequest) String ¶ added in v3.11.25
func (o *PullRequest) String() string
func (*PullRequest) UnmarshalJSON ¶ added in v3.11.16
func (o *PullRequest) UnmarshalJSON(b []byte) error
type PullRequestBranch ¶
type PullRequestBranch struct {
Ref string `json:"ref,omitempty"`
SHA string `json:"sha,omitempty"`
Repository Reference `json:"repository,omitempty" compare:"ignore"`
}
func (*PullRequestBranch) GetReferences ¶ added in v3.1.0
func (o *PullRequestBranch) GetReferences() References
func (*PullRequestBranch) UnmarshalJSON ¶ added in v3.11.16
func (o *PullRequestBranch) UnmarshalJSON(b []byte) error
type PullRequestFetchFunc ¶
type Reaction ¶
type Reaction struct {
Common `compare:"ignore"`
UserID Reference `json:"user_id,omitempty"`
Content string `json:"content,omitempty"`
}
func (*Reaction) GetReferences ¶
func (o *Reaction) GetReferences() References
func (*Reaction) UnmarshalJSON ¶ added in v3.11.16
type Reference ¶
type Reference interface {
String() string
IsNil() bool
Set(reference string)
Get() string
SetRequired(required bool)
GetRequired() bool
GetIDAsInt() int64
GetIDAsString() string
}
func NewForkReference ¶ added in v3.11.16
func NewLabelReference ¶ added in v3.11.16
func NewMilestoneReference ¶ added in v3.11.16
func NewOrganizationReference ¶ added in v3.11.16
func NewProjectReference ¶ added in v3.11.16
func NewReference ¶
func NewRepositoryReference ¶ added in v3.11.16
func NewTopicReference ¶ added in v3.11.16
func NewUserReference ¶ added in v3.11.16
type ReferenceImplementation ¶ added in v3.11.16
type ReferenceImplementation struct {
// contains filtered or unexported fields
}
func (ReferenceImplementation) Equal ¶ added in v3.11.16
func (o ReferenceImplementation) Equal(other ReferenceImplementation) bool
func (*ReferenceImplementation) Get ¶ added in v3.11.16
func (o *ReferenceImplementation) Get() string
func (*ReferenceImplementation) GetIDAsInt ¶ added in v3.11.16
func (o *ReferenceImplementation) GetIDAsInt() int64
func (*ReferenceImplementation) GetIDAsString ¶ added in v3.11.16
func (o *ReferenceImplementation) GetIDAsString() string
func (*ReferenceImplementation) GetRequired ¶ added in v3.11.30
func (o *ReferenceImplementation) GetRequired() bool
func (*ReferenceImplementation) IsNil ¶ added in v3.11.16
func (o *ReferenceImplementation) IsNil() bool
func (*ReferenceImplementation) MarshalJSON ¶ added in v3.11.16
func (o *ReferenceImplementation) MarshalJSON() ([]byte, error)
func (*ReferenceImplementation) Set ¶ added in v3.11.16
func (o *ReferenceImplementation) Set(reference string)
func (*ReferenceImplementation) SetRequired ¶ added in v3.11.30
func (o *ReferenceImplementation) SetRequired(required bool)
func (*ReferenceImplementation) String ¶ added in v3.11.25
func (o *ReferenceImplementation) String() string
func (*ReferenceImplementation) UnmarshalJSON ¶ added in v3.11.16
func (o *ReferenceImplementation) UnmarshalJSON(b []byte) error
type Release ¶
type Release struct {
Common `compare:"ignore"`
TagName string `json:"tag_name,omitempty"`
TargetCommitish string `json:"target_commitish,omitempty"`
Name string `json:"name,omitempty"`
Body markdown.Content `json:"body,omitempty"`
Draft bool `json:"draft"`
Prerelease bool `json:"prerelease"`
PublisherID Reference `json:"publisher_id,omitempty"`
Created time.Time `json:"created,omitempty"`
}
func (*Release) GetMarkdowns ¶ added in v3.11.28
func (*Release) GetReferences ¶
func (o *Release) GetReferences() References
func (*Release) UnmarshalJSON ¶ added in v3.11.16
type Repository ¶
type Repository struct {
Common `compare:"false"`
FetchFunc func(ctx context.Context, destination, internalRef string) `json:"-" compare:"ignore"`
}
func (Repository) Clone ¶
func (o Repository) Clone() Interface
func (*Repository) Init ¶ added in v3.11.16
func (o *Repository) Init() *Repository
func (*Repository) String ¶ added in v3.11.25
func (o *Repository) String() string
func (*Repository) UnmarshalJSON ¶ added in v3.11.16
func (o *Repository) UnmarshalJSON(b []byte) error
type RepositoryReference ¶ added in v3.11.16
type RepositoryReference struct {
ReferenceImplementation
}
type Review ¶
type Review struct {
Common `compare:"ignore"`
ReviewerID Reference `json:"reviewer_id,omitempty"`
Official bool `json:"official"`
CommitID string `json:"commit_id,omitempty"`
Content markdown.Content `json:"content,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
State string `json:"state,omitempty"`
}
func (*Review) GetMarkdowns ¶ added in v3.11.28
func (*Review) GetReferences ¶
func (o *Review) GetReferences() References
func (*Review) UnmarshalJSON ¶ added in v3.11.16
type ReviewComment ¶
type ReviewComment struct {
Common `compare:"ignore"`
Content markdown.Content `json:"content,omitempty"`
TreePath string `json:"tree_path,omitempty"`
DiffHunk string `json:"diff_hunk,omitempty"`
Line int `json:"line,omitempty"`
LinesCount int `json:"lines_count,omitempty"`
CommitID string `json:"commit_id,omitempty"`
PosterID Reference `json:"poster_id,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
}
func (ReviewComment) Clone ¶
func (o ReviewComment) Clone() Interface
func (*ReviewComment) GetMarkdowns ¶ added in v3.11.28
func (o *ReviewComment) GetMarkdowns() []markdown.Content
func (*ReviewComment) GetReferences ¶
func (o *ReviewComment) GetReferences() References
func (*ReviewComment) Init ¶ added in v3.11.16
func (o *ReviewComment) Init() *ReviewComment
func (*ReviewComment) String ¶ added in v3.11.25
func (o *ReviewComment) String() string
func (*ReviewComment) UnmarshalJSON ¶ added in v3.11.16
func (o *ReviewComment) UnmarshalJSON(b []byte) error
type Team ¶ added in v3.11.25
type Team struct {
Common `compare:"ignore"`
Name string `json:"name,omitempty"`
Description markdown.Content `json:"description,omitempty"`
Permissions []TeamPermission `json:"permissions"`
AllProjects bool `json:"all_projects"`
}
func (*Team) GetMarkdowns ¶ added in v3.11.28
func (*Team) UnmarshalJSON ¶ added in v3.11.25
type TeamMember ¶ added in v3.11.25
type TeamMember struct {
Common `compare:"ignore"`
Name string `json:"name"`
User Reference `json:"user"`
}
func (TeamMember) Clone ¶ added in v3.11.25
func (o TeamMember) Clone() Interface
func (*TeamMember) GetName ¶ added in v3.11.25
func (o *TeamMember) GetName() string
func (*TeamMember) GetReferences ¶ added in v3.11.25
func (o *TeamMember) GetReferences() References
func (*TeamMember) HasName ¶ added in v3.11.25
func (o *TeamMember) HasName() bool
func (*TeamMember) Init ¶ added in v3.11.25
func (o *TeamMember) Init() *TeamMember
func (*TeamMember) SetName ¶ added in v3.11.25
func (o *TeamMember) SetName(name string)
func (*TeamMember) String ¶ added in v3.11.25
func (o *TeamMember) String() string
func (*TeamMember) UnmarshalJSON ¶ added in v3.11.25
func (o *TeamMember) UnmarshalJSON(b []byte) error
type TeamPermission ¶ added in v3.11.25
type TeamPermission string
func TeamPermissionCompose ¶ added in v3.11.25
func TeamPermissionCompose(unit, access string) TeamPermission
type TeamProject ¶ added in v3.11.25
type TeamProject struct {
Common `compare:"ignore"`
Name string `json:"name"`
Project Reference `json:"project"`
}
func (TeamProject) Clone ¶ added in v3.11.25
func (o TeamProject) Clone() Interface
func (*TeamProject) GetName ¶ added in v3.11.25
func (o *TeamProject) GetName() string
func (*TeamProject) GetReferences ¶ added in v3.11.25
func (o *TeamProject) GetReferences() References
func (*TeamProject) HasName ¶ added in v3.11.25
func (o *TeamProject) HasName() bool
func (*TeamProject) Init ¶ added in v3.11.25
func (o *TeamProject) Init() *TeamProject
func (*TeamProject) SetName ¶ added in v3.11.25
func (o *TeamProject) SetName(name string)
func (*TeamProject) String ¶ added in v3.11.25
func (o *TeamProject) String() string
func (*TeamProject) UnmarshalJSON ¶ added in v3.11.25
func (o *TeamProject) UnmarshalJSON(b []byte) error
type Topic ¶
func (*Topic) UnmarshalJSON ¶ added in v3.11.16
type TopicReference ¶ added in v3.11.16
type TopicReference struct {
ReferenceImplementation
}
type User ¶
type User struct {
Common `compare:"ignore"`
Name string `json:"name,omitempty"`
Email string `json:"email,omitempty"`
UserName string `json:"username,omitempty"`
Avatar string `json:"avatar,omitempty"`
Password string `json:"password,omitempty" compare:"ignore"`
IsAdmin bool `json:"admin"`
}
func (*User) UnmarshalJSON ¶ added in v3.11.16
type UserReference ¶ added in v3.11.16
type UserReference struct {
ReferenceImplementation
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.