Documentation
¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
proto/admin.proto proto/auth.proto proto/ballot.proto proto/comments.proto proto/law.proto proto/upstream.proto proto/user.proto proto/welaw.proto
It has these top-level messages:
ServerStats LoadReposOptions LoadReposReply SaveReposOptions SaveReposReply UserRole LoginRequest LoginReply LoginUserRequest LoginUserReply MakeTokenRequest MakeTokenReply Authorization LoginAsRequest LoginAsReply LogoutRequest LogoutReply Vote VoteSummary CreateVotesOptions VoteResult CreateVoteOptions CreateVoteRequest CreateVoteReply DeleteVoteOptions DeleteVoteRequest DeleteVoteReply GetVoteOptions GetVoteRequest GetVoteReply ListVotesOptions ListVotesRequest ListVotesReply UpdateVoteOptions UpdateVoteRequest UpdateVoteReply Comment ListCommentsOptions DeleteCommentOptions UpdateCommentOptions Annotation AnnotationRange ListAnnotationsOptions GetCommentOptions LikeCommentOptions LawSet Author Law Branch Version CreateLawOptions CreateLawsOptions CreateLawRequest CreateLawReply DeleteLawOptions DeleteLawRequest DeleteLawReply DiffLawsOptions DiffLawsRequest DiffLawsReply GetLawOptions GetLawRequest GetLawReply ListLawsOptions ListLawsRequest ListLawsReply UpdateLawOptions UpdateLawRequest UpdateLawReply Upstream UpstreamMetadata CreateUpstreamRequest CreateUpstreamReply GetUpstreamRequest GetUpstreamReply ListUpstreamsRequest ListUpstreamsReply UpdateUpstreamRequest UpdateUpstreamReply User UserMetadata GetUserOptions GetUserRequest GetUserReply CreateUserRequest CreateUserReply ListUsersOptions ListUsersRequest ListUsersReply RegisterUserRequest RegisterUserReply UpdateUserOptions UpdateUserRequest UpdateUserReply UploadAvatarOptions
Index ¶
- Variables
- func RegisterWelawSvcServer(s *grpc.Server, srv WelawSvcServer)
- type Annotation
- func (*Annotation) Descriptor() ([]byte, []int)
- func (m *Annotation) GetBranch() string
- func (m *Annotation) GetCommentId() string
- func (m *Annotation) GetId() string
- func (m *Annotation) GetIdent() string
- func (m *Annotation) GetQuote() string
- func (m *Annotation) GetRanges() []*AnnotationRange
- func (m *Annotation) GetText() string
- func (m *Annotation) GetUpstream() string
- func (m *Annotation) GetVersion() string
- func (*Annotation) ProtoMessage()
- func (m *Annotation) Reset()
- func (m *Annotation) String() string
- type AnnotationRange
- func (*AnnotationRange) Descriptor() ([]byte, []int)
- func (m *AnnotationRange) GetEnd() string
- func (m *AnnotationRange) GetEndOffset() int32
- func (m *AnnotationRange) GetStart() string
- func (m *AnnotationRange) GetStartOffset() int32
- func (*AnnotationRange) ProtoMessage()
- func (m *AnnotationRange) Reset()
- func (m *AnnotationRange) String() string
- type Author
- func (*Author) Descriptor() ([]byte, []int)
- func (m *Author) GetEmail() string
- func (m *Author) GetFullName() string
- func (m *Author) GetPictureUrl() string
- func (m *Author) GetUid() string
- func (m *Author) GetUsername() string
- func (*Author) ProtoMessage()
- func (m *Author) Reset()
- func (m *Author) String() string
- type Authorization
- func (*Authorization) Descriptor() ([]byte, []int)
- func (m *Authorization) GetEmail() string
- func (m *Authorization) GetFullName() string
- func (m *Authorization) GetName() string
- func (m *Authorization) GetPictureUrl() string
- func (m *Authorization) GetProviderId() string
- func (m *Authorization) GetUid() string
- func (m *Authorization) GetUsername() string
- func (*Authorization) ProtoMessage()
- func (m *Authorization) Reset()
- func (m *Authorization) String() string
- type Branch
- func (*Branch) Descriptor() ([]byte, []int)
- func (m *Branch) GetLawId() string
- func (m *Branch) GetName() string
- func (m *Branch) GetUid() string
- func (m *Branch) GetUpstream() string
- func (m *Branch) GetUserId() string
- func (*Branch) ProtoMessage()
- func (m *Branch) Reset()
- func (m *Branch) String() string
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)
- func (m *Comment) GetAnnotationCount() int32
- func (m *Comment) GetAnnotations() []*Annotation
- func (m *Comment) GetBranch() string
- func (m *Comment) GetComment() string
- func (m *Comment) GetDisabled() bool
- func (m *Comment) GetIdent() string
- func (m *Comment) GetLiked() bool
- func (m *Comment) GetLikes() int32
- func (m *Comment) GetUid() string
- func (m *Comment) GetUpstream() string
- func (m *Comment) GetUser() *User
- func (m *Comment) GetUserId() string
- func (m *Comment) GetUsername() string
- func (m *Comment) GetVersion() uint32
- func (*Comment) ProtoMessage()
- func (m *Comment) Reset()
- func (m *Comment) String() string
- type CreateLawOptions
- type CreateLawReply
- type CreateLawRequest
- type CreateLawsOptions
- type CreateUpstreamReply
- type CreateUpstreamRequest
- type CreateUserReply
- type CreateUserRequest
- type CreateVoteOptions
- func (*CreateVoteOptions) Descriptor() ([]byte, []int)
- func (m *CreateVoteOptions) GetBranch() string
- func (m *CreateVoteOptions) GetUsername() string
- func (m *CreateVoteOptions) GetVersion() string
- func (*CreateVoteOptions) ProtoMessage()
- func (m *CreateVoteOptions) Reset()
- func (m *CreateVoteOptions) String() string
- type CreateVoteReply
- type CreateVoteRequest
- type CreateVotesOptions
- type DeleteCommentOptions
- type DeleteLawOptions
- type DeleteLawReply
- type DeleteLawRequest
- func (*DeleteLawRequest) Descriptor() ([]byte, []int)
- func (m *DeleteLawRequest) GetIdent() string
- func (m *DeleteLawRequest) GetOpts() *DeleteLawOptions
- func (m *DeleteLawRequest) GetUpstream() string
- func (*DeleteLawRequest) ProtoMessage()
- func (m *DeleteLawRequest) Reset()
- func (m *DeleteLawRequest) String() string
- type DeleteVoteOptions
- func (*DeleteVoteOptions) Descriptor() ([]byte, []int)
- func (m *DeleteVoteOptions) GetBranch() string
- func (m *DeleteVoteOptions) GetUsername() string
- func (m *DeleteVoteOptions) GetVersion() string
- func (*DeleteVoteOptions) ProtoMessage()
- func (m *DeleteVoteOptions) Reset()
- func (m *DeleteVoteOptions) String() string
- type DeleteVoteReply
- type DeleteVoteRequest
- func (*DeleteVoteRequest) Descriptor() ([]byte, []int)
- func (m *DeleteVoteRequest) GetIdent() string
- func (m *DeleteVoteRequest) GetOpts() *DeleteVoteOptions
- func (m *DeleteVoteRequest) GetUpstream() string
- func (*DeleteVoteRequest) ProtoMessage()
- func (m *DeleteVoteRequest) Reset()
- func (m *DeleteVoteRequest) String() string
- type DiffLawsOptions
- func (*DiffLawsOptions) Descriptor() ([]byte, []int)
- func (m *DiffLawsOptions) GetOurBranch() string
- func (m *DiffLawsOptions) GetOurVersion() string
- func (m *DiffLawsOptions) GetTheirBranch() string
- func (m *DiffLawsOptions) GetTheirVersion() string
- func (*DiffLawsOptions) ProtoMessage()
- func (m *DiffLawsOptions) Reset()
- func (m *DiffLawsOptions) String() string
- type DiffLawsReply
- type DiffLawsRequest
- func (*DiffLawsRequest) Descriptor() ([]byte, []int)
- func (m *DiffLawsRequest) GetIdent() string
- func (m *DiffLawsRequest) GetOpts() *DiffLawsOptions
- func (m *DiffLawsRequest) GetUpstream() string
- func (*DiffLawsRequest) ProtoMessage()
- func (m *DiffLawsRequest) Reset()
- func (m *DiffLawsRequest) String() string
- type GetCommentOptions
- func (*GetCommentOptions) Descriptor() ([]byte, []int)
- func (m *GetCommentOptions) GetBranch() string
- func (m *GetCommentOptions) GetIdent() string
- func (m *GetCommentOptions) GetQuiet() bool
- func (m *GetCommentOptions) GetReqType() GetCommentOptions_RequestType
- func (m *GetCommentOptions) GetUid() string
- func (m *GetCommentOptions) GetUpstream() string
- func (m *GetCommentOptions) GetUsername() string
- func (m *GetCommentOptions) GetVersion() int32
- func (*GetCommentOptions) ProtoMessage()
- func (m *GetCommentOptions) Reset()
- func (m *GetCommentOptions) String() string
- type GetCommentOptions_RequestType
- type GetLawOptions
- type GetLawReply
- type GetLawRequest
- type GetUpstreamReply
- func (*GetUpstreamReply) Descriptor() ([]byte, []int)
- func (m *GetUpstreamReply) GetErr() string
- func (m *GetUpstreamReply) GetLaws() []*LawSet
- func (m *GetUpstreamReply) GetUpstream() *Upstream
- func (m *GetUpstreamReply) GetUsers() []*User
- func (*GetUpstreamReply) ProtoMessage()
- func (m *GetUpstreamReply) Reset()
- func (m *GetUpstreamReply) String() string
- type GetUpstreamRequest
- type GetUserOptions
- func (*GetUserOptions) Descriptor() ([]byte, []int)
- func (m *GetUserOptions) GetEmail() string
- func (m *GetUserOptions) GetQuiet() bool
- func (m *GetUserOptions) GetReqType() GetUserOptions_RequestType
- func (m *GetUserOptions) GetUid() string
- func (m *GetUserOptions) GetUsername() string
- func (*GetUserOptions) ProtoMessage()
- func (m *GetUserOptions) Reset()
- func (m *GetUserOptions) String() string
- type GetUserOptions_RequestType
- type GetUserReply
- func (*GetUserReply) Descriptor() ([]byte, []int)
- func (m *GetUserReply) GetAdmin() bool
- func (m *GetUserReply) GetErr() string
- func (m *GetUserReply) GetOwner() bool
- func (m *GetUserReply) GetUser() *User
- func (*GetUserReply) ProtoMessage()
- func (m *GetUserReply) Reset()
- func (m *GetUserReply) String() string
- type GetUserRequest
- type GetVoteOptions
- func (*GetVoteOptions) Descriptor() ([]byte, []int)
- func (m *GetVoteOptions) GetBranch() string
- func (m *GetVoteOptions) GetIdent() string
- func (m *GetVoteOptions) GetQuiet() bool
- func (m *GetVoteOptions) GetReqType() GetVoteOptions_RequestType
- func (m *GetVoteOptions) GetUpstream() string
- func (m *GetVoteOptions) GetUsername() string
- func (m *GetVoteOptions) GetVersion() string
- func (*GetVoteOptions) ProtoMessage()
- func (m *GetVoteOptions) Reset()
- func (m *GetVoteOptions) String() string
- type GetVoteOptions_RequestType
- type GetVoteReply
- type GetVoteRequest
- type Law
- func (*Law) Descriptor() ([]byte, []int)
- func (m *Law) GetDescription() string
- func (m *Law) GetIdent() string
- func (m *Law) GetShortTitle() string
- func (m *Law) GetTitle() string
- func (m *Law) GetUid() string
- func (m *Law) GetUpstream() string
- func (m *Law) GetUrl() string
- func (m *Law) GetUserId() string
- func (*Law) ProtoMessage()
- func (m *Law) Reset()
- func (m *Law) String() string
- type LawSet
- func (*LawSet) Descriptor() ([]byte, []int)
- func (m *LawSet) GetAuthor() *Author
- func (m *LawSet) GetBranch() *Branch
- func (m *LawSet) GetLaw() *Law
- func (m *LawSet) GetUser() *User
- func (m *LawSet) GetVersion() *Version
- func (*LawSet) ProtoMessage()
- func (m *LawSet) Reset()
- func (m *LawSet) String() string
- type LikeCommentOptions
- type ListAnnotationsOptions
- func (*ListAnnotationsOptions) Descriptor() ([]byte, []int)
- func (m *ListAnnotationsOptions) GetCommentId() string
- func (m *ListAnnotationsOptions) GetReqType() ListAnnotationsOptions_RequestType
- func (m *ListAnnotationsOptions) GetUid() string
- func (m *ListAnnotationsOptions) GetUsername() string
- func (*ListAnnotationsOptions) ProtoMessage()
- func (m *ListAnnotationsOptions) Reset()
- func (m *ListAnnotationsOptions) String() string
- type ListAnnotationsOptions_RequestType
- type ListCommentsOptions
- func (*ListCommentsOptions) Descriptor() ([]byte, []int)
- func (m *ListCommentsOptions) GetBranch() string
- func (m *ListCommentsOptions) GetDesc() bool
- func (m *ListCommentsOptions) GetFilter() string
- func (m *ListCommentsOptions) GetIdent() string
- func (m *ListCommentsOptions) GetOrderBy() string
- func (m *ListCommentsOptions) GetPageNum() int32
- func (m *ListCommentsOptions) GetPageSize() int32
- func (m *ListCommentsOptions) GetReqType() ListCommentsOptions_RequestType
- func (m *ListCommentsOptions) GetUpstream() string
- func (m *ListCommentsOptions) GetUsername() string
- func (m *ListCommentsOptions) GetVersion() int32
- func (*ListCommentsOptions) ProtoMessage()
- func (m *ListCommentsOptions) Reset()
- func (m *ListCommentsOptions) String() string
- type ListCommentsOptions_RequestType
- type ListLawsOptions
- func (*ListLawsOptions) Descriptor() ([]byte, []int)
- func (m *ListLawsOptions) GetBranch() string
- func (m *ListLawsOptions) GetDesc() bool
- func (m *ListLawsOptions) GetFromDate() string
- func (m *ListLawsOptions) GetIdent() string
- func (m *ListLawsOptions) GetOrderBy() string
- func (m *ListLawsOptions) GetPageNum() int32
- func (m *ListLawsOptions) GetPageSize() int32
- func (m *ListLawsOptions) GetReqType() ListLawsOptions_RequestType
- func (m *ListLawsOptions) GetSearch() string
- func (m *ListLawsOptions) GetToDate() string
- func (m *ListLawsOptions) GetUpstream() string
- func (m *ListLawsOptions) GetUsername() string
- func (*ListLawsOptions) ProtoMessage()
- func (m *ListLawsOptions) Reset()
- func (m *ListLawsOptions) String() string
- type ListLawsOptions_RequestType
- type ListLawsReply
- func (*ListLawsReply) Descriptor() ([]byte, []int)
- func (m *ListLawsReply) GetErr() string
- func (m *ListLawsReply) GetLawSets() []*LawSet
- func (m *ListLawsReply) GetSuggestions() []string
- func (m *ListLawsReply) GetTotal() int32
- func (*ListLawsReply) ProtoMessage()
- func (m *ListLawsReply) Reset()
- func (m *ListLawsReply) String() string
- type ListLawsRequest
- type ListUpstreamsReply
- type ListUpstreamsRequest
- type ListUsersOptions
- func (*ListUsersOptions) Descriptor() ([]byte, []int)
- func (m *ListUsersOptions) GetAll() bool
- func (m *ListUsersOptions) GetLimit() int32
- func (m *ListUsersOptions) GetPageNum() int32
- func (m *ListUsersOptions) GetPageSize() int32
- func (m *ListUsersOptions) GetReqType() ListUsersOptions_RequestType
- func (m *ListUsersOptions) GetSearch() string
- func (m *ListUsersOptions) GetUpstream() string
- func (*ListUsersOptions) ProtoMessage()
- func (m *ListUsersOptions) Reset()
- func (m *ListUsersOptions) String() string
- type ListUsersOptions_RequestType
- type ListUsersReply
- type ListUsersRequest
- type ListVotesOptions
- func (*ListVotesOptions) Descriptor() ([]byte, []int)
- func (m *ListVotesOptions) GetBranch() string
- func (m *ListVotesOptions) GetCategory() string
- func (m *ListVotesOptions) GetIdent() string
- func (m *ListVotesOptions) GetPageNum() uint32
- func (m *ListVotesOptions) GetPageSize() uint32
- func (m *ListVotesOptions) GetUpstream() string
- func (m *ListVotesOptions) GetUsername() string
- func (m *ListVotesOptions) GetVersion() uint32
- func (*ListVotesOptions) ProtoMessage()
- func (m *ListVotesOptions) Reset()
- func (m *ListVotesOptions) String() string
- type ListVotesReply
- type ListVotesRequest
- type LoadReposOptions
- type LoadReposReply
- type LoginAsReply
- type LoginAsRequest
- type LoginReply
- type LoginRequest
- type LoginUserReply
- type LoginUserRequest
- type LogoutReply
- type LogoutRequest
- type MakeTokenReply
- type MakeTokenRequest
- type RegisterUserReply
- type RegisterUserRequest
- type SaveReposOptions
- type SaveReposOptions_RequestType
- type SaveReposReply
- type ServerStats
- func (*ServerStats) Descriptor() ([]byte, []int)
- func (m *ServerStats) GetBranches() string
- func (m *ServerStats) GetLaws() string
- func (m *ServerStats) GetUpstreams() string
- func (m *ServerStats) GetUsers() string
- func (m *ServerStats) GetVersions() string
- func (m *ServerStats) GetVotes() string
- func (*ServerStats) ProtoMessage()
- func (m *ServerStats) Reset()
- func (m *ServerStats) String() string
- type UpdateCommentOptions
- type UpdateLawOptions
- type UpdateLawReply
- type UpdateLawRequest
- type UpdateUpstreamReply
- type UpdateUpstreamRequest
- type UpdateUserOptions
- func (*UpdateUserOptions) Descriptor() ([]byte, []int)
- func (m *UpdateUserOptions) GetBiography() string
- func (m *UpdateUserOptions) GetEmail() string
- func (m *UpdateUserOptions) GetEmailPrivate() bool
- func (m *UpdateUserOptions) GetFullName() string
- func (m *UpdateUserOptions) GetFullNamePrivate() bool
- func (m *UpdateUserOptions) GetPassword() string
- func (m *UpdateUserOptions) GetPictureUrl() string
- func (m *UpdateUserOptions) GetUsername() string
- func (*UpdateUserOptions) ProtoMessage()
- func (m *UpdateUserOptions) Reset()
- func (m *UpdateUserOptions) String() string
- type UpdateUserReply
- type UpdateUserRequest
- type UpdateVoteOptions
- func (*UpdateVoteOptions) Descriptor() ([]byte, []int)
- func (m *UpdateVoteOptions) GetBranch() string
- func (m *UpdateVoteOptions) GetUsername() string
- func (m *UpdateVoteOptions) GetVersion() string
- func (*UpdateVoteOptions) ProtoMessage()
- func (m *UpdateVoteOptions) Reset()
- func (m *UpdateVoteOptions) String() string
- type UpdateVoteReply
- type UpdateVoteRequest
- type UploadAvatarOptions
- func (*UploadAvatarOptions) Descriptor() ([]byte, []int)
- func (m *UploadAvatarOptions) GetFilename() string
- func (m *UploadAvatarOptions) GetImage() []byte
- func (m *UploadAvatarOptions) GetUsername() string
- func (*UploadAvatarOptions) ProtoMessage()
- func (m *UploadAvatarOptions) Reset()
- func (m *UploadAvatarOptions) String() string
- type Upstream
- func (*Upstream) Descriptor() ([]byte, []int)
- func (m *Upstream) GetDefaultUser() string
- func (m *Upstream) GetDescription() string
- func (m *Upstream) GetEmail() string
- func (m *Upstream) GetGeoCoords() string
- func (m *Upstream) GetIdent() string
- func (m *Upstream) GetLaws() int32
- func (m *Upstream) GetMetadata() *UpstreamMetadata
- func (m *Upstream) GetName() string
- func (m *Upstream) GetUid() string
- func (m *Upstream) GetUpstreamDescription() string
- func (m *Upstream) GetUpstreamName() string
- func (m *Upstream) GetUrl() string
- func (m *Upstream) GetUserId() string
- func (m *Upstream) GetUsers() int32
- func (*Upstream) ProtoMessage()
- func (m *Upstream) Reset()
- func (m *Upstream) String() string
- type UpstreamMetadata
- func (*UpstreamMetadata) Descriptor() ([]byte, []int)
- func (m *UpstreamMetadata) GetApiUrl() string
- func (m *UpstreamMetadata) GetEmail() string
- func (m *UpstreamMetadata) GetFacebook() string
- func (m *UpstreamMetadata) GetTwitter() string
- func (m *UpstreamMetadata) GetWikipedia() string
- func (*UpstreamMetadata) ProtoMessage()
- func (m *UpstreamMetadata) Reset()
- func (m *UpstreamMetadata) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetBiography() string
- func (m *User) GetDeletedAt() string
- func (m *User) GetEmail() string
- func (m *User) GetEmailPrivate() bool
- func (m *User) GetFullName() string
- func (m *User) GetFullNamePrivate() bool
- func (m *User) GetHasPassword() bool
- func (m *User) GetKey() string
- func (m *User) GetLastLogin() string
- func (m *User) GetLawCount() int32
- func (m *User) GetName() string
- func (m *User) GetPictureUrl() string
- func (m *User) GetProvider() string
- func (m *User) GetProviderId() string
- func (m *User) GetRoles() []string
- func (m *User) GetUid() string
- func (m *User) GetUpstream() string
- func (m *User) GetUpstreamBody() string
- func (m *User) GetUpstreamId() string
- func (m *User) GetUsername() string
- func (m *User) GetVoteCount() int32
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- type UserMetadata
- func (*UserMetadata) Descriptor() ([]byte, []int)
- func (m *UserMetadata) GetInfluence() int32
- func (m *UserMetadata) GetOfficeAddr() string
- func (m *UserMetadata) GetOfficeEmail() string
- func (m *UserMetadata) GetOfficePhone() string
- func (m *UserMetadata) GetRank() string
- func (m *UserMetadata) GetState() string
- func (m *UserMetadata) GetWebsiteUrl() string
- func (*UserMetadata) ProtoMessage()
- func (m *UserMetadata) Reset()
- func (m *UserMetadata) String() string
- type UserRole
- type Version
- func (*Version) Descriptor() ([]byte, []int)
- func (m *Version) GetBody() string
- func (m *Version) GetBranchId() string
- func (m *Version) GetCommentCount() int32
- func (m *Version) GetDescription() string
- func (m *Version) GetHasVoted() bool
- func (m *Version) GetHash() string
- func (m *Version) GetLabel() string
- func (m *Version) GetMsg() string
- func (m *Version) GetNays() int32
- func (m *Version) GetPublishedAt() *google_protobuf.Timestamp
- func (m *Version) GetTags() map[string]string
- func (m *Version) GetUid() string
- func (m *Version) GetUpstreamGroup() string
- func (m *Version) GetUserId() string
- func (m *Version) GetVersion() uint32
- func (m *Version) GetYays() int32
- func (*Version) ProtoMessage()
- func (m *Version) Reset()
- func (m *Version) String() string
- type Vote
- func (*Vote) Descriptor() ([]byte, []int)
- func (m *Vote) GetBranch() string
- func (m *Vote) GetCastAt() *google_protobuf.Timestamp
- func (m *Vote) GetComment() string
- func (m *Vote) GetIdent() string
- func (m *Vote) GetLabel() string
- func (m *Vote) GetLaw() *LawSet
- func (m *Vote) GetLawId() string
- func (m *Vote) GetLawTitle() string
- func (m *Vote) GetPictureUrl() string
- func (m *Vote) GetUid() string
- func (m *Vote) GetUpstream() string
- func (m *Vote) GetUser() *User
- func (m *Vote) GetUserId() string
- func (m *Vote) GetUsername() string
- func (m *Vote) GetVersion() uint32
- func (m *Vote) GetVersionId() string
- func (m *Vote) GetVote() string
- func (*Vote) ProtoMessage()
- func (m *Vote) Reset()
- func (m *Vote) String() string
- type VoteResult
- func (*VoteResult) Descriptor() ([]byte, []int)
- func (m *VoteResult) GetIdent() string
- func (m *VoteResult) GetPublishedAt() *google_protobuf.Timestamp
- func (m *VoteResult) GetResult() string
- func (m *VoteResult) GetUpstream() string
- func (m *VoteResult) GetUpstreamGroup() string
- func (*VoteResult) ProtoMessage()
- func (m *VoteResult) Reset()
- func (m *VoteResult) String() string
- type VoteSummary
- func (*VoteSummary) Descriptor() ([]byte, []int)
- func (m *VoteSummary) GetNays() int32
- func (m *VoteSummary) GetNotPresent() int32
- func (m *VoteSummary) GetPresent() int32
- func (m *VoteSummary) GetUpstreamNays() int32
- func (m *VoteSummary) GetUpstreamNotPresent() int32
- func (m *VoteSummary) GetUpstreamPresent() int32
- func (m *VoteSummary) GetUpstreamYays() int32
- func (m *VoteSummary) GetYays() int32
- func (*VoteSummary) ProtoMessage()
- func (m *VoteSummary) Reset()
- func (m *VoteSummary) String() string
- type VoteValue
- type WelawSvcClient
- type WelawSvcServer
Constants ¶
This section is empty.
Variables ¶
View Source
var GetCommentOptions_RequestType_name = map[int32]string{
0: "BY_USER_VERSION",
1: "BY_UID",
}
View Source
var GetCommentOptions_RequestType_value = map[string]int32{
"BY_USER_VERSION": 0,
"BY_UID": 1,
}
View Source
var GetUserOptions_RequestType_name = map[int32]string{
0: "BY_USERNAME",
1: "BY_UID",
2: "BY_CONTEXT",
}
View Source
var GetUserOptions_RequestType_value = map[string]int32{
"BY_USERNAME": 0,
"BY_UID": 1,
"BY_CONTEXT": 2,
}
View Source
var GetVoteOptions_RequestType_name = map[int32]string{
0: "BY_USER_VERSION",
}
View Source
var GetVoteOptions_RequestType_value = map[string]int32{
"BY_USER_VERSION": 0,
}
View Source
var ListAnnotationsOptions_RequestType_name = map[int32]string{
0: "BY_USERNAME",
1: "BY_UID",
2: "BY_COMMENT",
}
View Source
var ListAnnotationsOptions_RequestType_value = map[string]int32{
"BY_USERNAME": 0,
"BY_UID": 1,
"BY_COMMENT": 2,
}
View Source
var ListCommentsOptions_RequestType_name = map[int32]string{
0: "BY_USERNAME",
1: "BY_VERSION",
}
View Source
var ListCommentsOptions_RequestType_value = map[string]int32{
"BY_USERNAME": 0,
"BY_VERSION": 1,
}
View Source
var ListLawsOptions_RequestType_name = map[int32]string{
0: "USER_LAWS",
1: "UPSTREAM_LAWS",
2: "SEARCH",
3: "LAW_BRANCHES",
4: "BRANCH_VERSIONS",
}
View Source
var ListLawsOptions_RequestType_value = map[string]int32{
"USER_LAWS": 0,
"UPSTREAM_LAWS": 1,
"SEARCH": 2,
"LAW_BRANCHES": 3,
"BRANCH_VERSIONS": 4,
}
View Source
var ListUsersOptions_RequestType_name = map[int32]string{
0: "BY_UPSTREAM",
1: "ALL",
}
View Source
var ListUsersOptions_RequestType_value = map[string]int32{
"BY_UPSTREAM": 0,
"ALL": 1,
}
View Source
var SaveReposOptions_RequestType_name = map[int32]string{
0: "SAVE",
1: "LOAD",
}
View Source
var SaveReposOptions_RequestType_value = map[string]int32{
"SAVE": 0,
"LOAD": 1,
}
View Source
var VoteValue_name = map[int32]string{
0: "YES",
1: "NO",
2: "PRESENT",
3: "NOT_PRESENT",
}
View Source
var VoteValue_value = map[string]int32{
"YES": 0,
"NO": 1,
"PRESENT": 2,
"NOT_PRESENT": 3,
}
Functions ¶
func RegisterWelawSvcServer ¶
func RegisterWelawSvcServer(s *grpc.Server, srv WelawSvcServer)
Types ¶
type Annotation ¶
type Annotation struct { Quote string `protobuf:"bytes,1,opt,name=quote" json:"quote,omitempty"` Ranges []*AnnotationRange `protobuf:"bytes,2,rep,name=ranges" json:"ranges,omitempty"` Text string `protobuf:"bytes,3,opt,name=text" json:"text,omitempty"` Upstream string `protobuf:"bytes,4,opt,name=upstream" json:"upstream,omitempty"` Ident string `protobuf:"bytes,5,opt,name=ident" json:"ident,omitempty"` Branch string `protobuf:"bytes,6,opt,name=branch" json:"branch,omitempty"` Version string `protobuf:"bytes,7,opt,name=version" json:"version,omitempty"` Id string `protobuf:"bytes,8,opt,name=id" json:"id,omitempty"` CommentId string `protobuf:"bytes,9,opt,name=comment_id,json=commentId" json:"comment_id,omitempty"` }
func (*Annotation) Descriptor ¶
func (*Annotation) Descriptor() ([]byte, []int)
func (*Annotation) GetBranch ¶
func (m *Annotation) GetBranch() string
func (*Annotation) GetCommentId ¶
func (m *Annotation) GetCommentId() string
func (*Annotation) GetId ¶
func (m *Annotation) GetId() string
func (*Annotation) GetIdent ¶
func (m *Annotation) GetIdent() string
func (*Annotation) GetQuote ¶
func (m *Annotation) GetQuote() string
func (*Annotation) GetRanges ¶
func (m *Annotation) GetRanges() []*AnnotationRange
func (*Annotation) GetText ¶
func (m *Annotation) GetText() string
func (*Annotation) GetUpstream ¶
func (m *Annotation) GetUpstream() string
func (*Annotation) GetVersion ¶
func (m *Annotation) GetVersion() string
func (*Annotation) ProtoMessage ¶
func (*Annotation) ProtoMessage()
func (*Annotation) Reset ¶
func (m *Annotation) Reset()
func (*Annotation) String ¶
func (m *Annotation) String() string
type AnnotationRange ¶
type AnnotationRange struct { Start string `protobuf:"bytes,1,opt,name=start" json:"start,omitempty"` StartOffset int32 `protobuf:"varint,2,opt,name=startOffset" json:"startOffset,omitempty"` End string `protobuf:"bytes,3,opt,name=end" json:"end,omitempty"` EndOffset int32 `protobuf:"varint,4,opt,name=endOffset" json:"endOffset,omitempty"` }
func (*AnnotationRange) Descriptor ¶
func (*AnnotationRange) Descriptor() ([]byte, []int)
func (*AnnotationRange) GetEnd ¶
func (m *AnnotationRange) GetEnd() string
func (*AnnotationRange) GetEndOffset ¶
func (m *AnnotationRange) GetEndOffset() int32
func (*AnnotationRange) GetStart ¶
func (m *AnnotationRange) GetStart() string
func (*AnnotationRange) GetStartOffset ¶
func (m *AnnotationRange) GetStartOffset() int32
func (*AnnotationRange) ProtoMessage ¶
func (*AnnotationRange) ProtoMessage()
func (*AnnotationRange) Reset ¶
func (m *AnnotationRange) Reset()
func (*AnnotationRange) String ¶
func (m *AnnotationRange) String() string
type Author ¶
type Author struct { Uid string `protobuf:"bytes,1,opt,name=uid" json:"uid,omitempty"` Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"` Email string `protobuf:"bytes,3,opt,name=email" json:"email,omitempty"` FullName string `protobuf:"bytes,4,opt,name=full_name,json=fullName" json:"full_name,omitempty"` PictureUrl string `protobuf:"bytes,5,opt,name=picture_url,json=pictureUrl" json:"picture_url,omitempty"` }
func (*Author) Descriptor ¶
func (*Author) GetFullName ¶
func (*Author) GetPictureUrl ¶
func (*Author) GetUsername ¶
func (*Author) ProtoMessage ¶
func (*Author) ProtoMessage()
type Authorization ¶
type Authorization struct { Uid string `protobuf:"bytes,1,opt,name=uid" json:"uid,omitempty"` Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"` Email string `protobuf:"bytes,3,opt,name=email" json:"email,omitempty"` FullName string `protobuf:"bytes,4,opt,name=full_name,json=fullName" json:"full_name,omitempty"` PictureUrl string `protobuf:"bytes,8,opt,name=picture_url,json=pictureUrl" json:"picture_url,omitempty"` ProviderId string `protobuf:"bytes,9,opt,name=provider_id,json=providerId" json:"provider_id,omitempty"` Name string `protobuf:"bytes,10,opt,name=name" json:"name,omitempty"` }
func (*Authorization) Descriptor ¶
func (*Authorization) Descriptor() ([]byte, []int)
func (*Authorization) GetEmail ¶
func (m *Authorization) GetEmail() string
func (*Authorization) GetFullName ¶
func (m *Authorization) GetFullName() string
func (*Authorization) GetName ¶
func (m *Authorization) GetName() string
func (*Authorization) GetPictureUrl ¶
func (m *Authorization) GetPictureUrl() string
func (*Authorization) GetProviderId ¶
func (m *Authorization) GetProviderId() string
func (*Authorization) GetUid ¶
func (m *Authorization) GetUid() string
func (*Authorization) GetUsername ¶
func (m *Authorization) GetUsername() string
func (*Authorization) ProtoMessage ¶
func (*Authorization) ProtoMessage()
func (*Authorization) Reset ¶
func (m *Authorization) Reset()
func (*Authorization) String ¶
func (m *Authorization) String() string
type Branch ¶
type Branch struct { Uid string `protobuf:"bytes,1,opt,name=uid" json:"uid,omitempty"` LawId string `protobuf:"bytes,2,opt,name=law_id,json=lawId" json:"law_id,omitempty"` UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId" json:"user_id,omitempty"` Name string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"` Upstream string `protobuf:"bytes,5,opt,name=upstream" json:"upstream,omitempty"` }
func (*Branch) Descriptor ¶
func (*Branch) GetUpstream ¶
func (*Branch) ProtoMessage ¶
func (*Branch) ProtoMessage()
type Comment ¶
type Comment struct { Comment string `protobuf:"bytes,1,opt,name=comment" json:"comment,omitempty"` Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"` UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId" json:"user_id,omitempty"` AnnotationCount int32 `protobuf:"varint,4,opt,name=annotation_count,json=annotationCount" json:"annotation_count,omitempty"` Annotations []*Annotation `protobuf:"bytes,5,rep,name=annotations" json:"annotations,omitempty"` Upstream string `protobuf:"bytes,6,opt,name=upstream" json:"upstream,omitempty"` Ident string `protobuf:"bytes,7,opt,name=ident" json:"ident,omitempty"` Branch string `protobuf:"bytes,8,opt,name=branch" json:"branch,omitempty"` Version uint32 `protobuf:"varint,9,opt,name=version" json:"version,omitempty"` Uid string `protobuf:"bytes,10,opt,name=uid" json:"uid,omitempty"` Disabled bool `protobuf:"varint,11,opt,name=disabled" json:"disabled,omitempty"` User *User `protobuf:"bytes,12,opt,name=user" json:"user,omitempty"` Likes int32 `protobuf:"varint,13,opt,name=likes" json:"likes,omitempty"` Liked bool `protobuf:"varint,14,opt,name=liked" json:"liked,omitempty"` }
func (*Comment) Descriptor ¶
func (*Comment) GetAnnotationCount ¶
func (*Comment) GetAnnotations ¶
func (m *Comment) GetAnnotations() []*Annotation
func (*Comment) GetComment ¶
func (*Comment) GetDisabled ¶
func (*Comment) GetUpstream ¶
func (*Comment) GetUsername ¶
func (*Comment) GetVersion ¶
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
type CreateLawOptions ¶
type CreateLawOptions struct { Branch string `protobuf:"bytes,1,opt,name=branch" json:"branch,omitempty"` Version uint32 `protobuf:"varint,2,opt,name=version" json:"version,omitempty"` }
func (*CreateLawOptions) Descriptor ¶
func (*CreateLawOptions) Descriptor() ([]byte, []int)
func (*CreateLawOptions) GetBranch ¶
func (m *CreateLawOptions) GetBranch() string
func (*CreateLawOptions) GetVersion ¶
func (m *CreateLawOptions) GetVersion() uint32
func (*CreateLawOptions) ProtoMessage ¶
func (*CreateLawOptions) ProtoMessage()
func (*CreateLawOptions) Reset ¶
func (m *CreateLawOptions) Reset()
func (*CreateLawOptions) String ¶
func (m *CreateLawOptions) String() string
type CreateLawReply ¶
type CreateLawReply struct { LawSet *LawSet `protobuf:"bytes,1,opt,name=law_set,json=lawSet" json:"law_set,omitempty"` Err string `protobuf:"bytes,2,opt,name=err" json:"err,omitempty"` }
func (*CreateLawReply) Descriptor ¶
func (*CreateLawReply) Descriptor() ([]byte, []int)
func (*CreateLawReply) GetErr ¶
func (m *CreateLawReply) GetErr() string
func (*CreateLawReply) GetLawSet ¶
func (m *CreateLawReply) GetLawSet() *LawSet
func (*CreateLawReply) ProtoMessage ¶
func (*CreateLawReply) ProtoMessage()
func (*CreateLawReply) Reset ¶
func (m *CreateLawReply) Reset()
func (*CreateLawReply) String ¶
func (m *CreateLawReply) String() string
type CreateLawRequest ¶
type CreateLawRequest struct { LawSet *LawSet `protobuf:"bytes,1,opt,name=law_set,json=lawSet" json:"law_set,omitempty"` Opts *CreateLawOptions `protobuf:"bytes,2,opt,name=opts" json:"opts,omitempty"` }
func (*CreateLawRequest) Descriptor ¶
func (*CreateLawRequest) Descriptor() ([]byte, []int)
func (*CreateLawRequest) GetLawSet ¶
func (m *CreateLawRequest) GetLawSet() *LawSet
func (*CreateLawRequest) GetOpts ¶
func (m *CreateLawRequest) GetOpts() *CreateLawOptions
func (*CreateLawRequest) ProtoMessage ¶
func (*CreateLawRequest) ProtoMessage()
func (*CreateLawRequest) Reset ¶
func (m *CreateLawRequest) Reset()
func (*CreateLawRequest) String ¶
func (m *CreateLawRequest) String() string
type CreateLawsOptions ¶
type CreateLawsOptions struct { Branch string `protobuf:"bytes,1,opt,name=branch" json:"branch,omitempty"` Version uint32 `protobuf:"varint,2,opt,name=version" json:"version,omitempty"` }
func (*CreateLawsOptions) Descriptor ¶
func (*CreateLawsOptions) Descriptor() ([]byte, []int)
func (*CreateLawsOptions) GetBranch ¶
func (m *CreateLawsOptions) GetBranch() string
func (*CreateLawsOptions) GetVersion ¶
func (m *CreateLawsOptions) GetVersion() uint32
func (*CreateLawsOptions) ProtoMessage ¶
func (*CreateLawsOptions) ProtoMessage()
func (*CreateLawsOptions) Reset ¶
func (m *CreateLawsOptions) Reset()
func (*CreateLawsOptions) String ¶
func (m *CreateLawsOptions) String() string
type CreateUpstreamReply ¶
type CreateUpstreamReply struct {
Err string `protobuf:"bytes,1,opt,name=err" json:"err,omitempty"`
}
func (*CreateUpstreamReply) Descriptor ¶
func (*CreateUpstreamReply) Descriptor() ([]byte, []int)
func (*CreateUpstreamReply) GetErr ¶
func (m *CreateUpstreamReply) GetErr() string
func (*CreateUpstreamReply) ProtoMessage ¶
func (*CreateUpstreamReply) ProtoMessage()
func (*CreateUpstreamReply) Reset ¶
func (m *CreateUpstreamReply) Reset()
func (*CreateUpstreamReply) String ¶
func (m *CreateUpstreamReply) String() string
type CreateUpstreamRequest ¶
type CreateUpstreamRequest struct {
Upstream *Upstream `protobuf:"bytes,1,opt,name=upstream" json:"upstream,omitempty"`
}
func (*CreateUpstreamRequest) Descriptor ¶
func (*CreateUpstreamRequest) Descriptor() ([]byte, []int)
func (*CreateUpstreamRequest) GetUpstream ¶
func (m *CreateUpstreamRequest) GetUpstream() *Upstream
func (*CreateUpstreamRequest) ProtoMessage ¶
func (*CreateUpstreamRequest) ProtoMessage()
func (*CreateUpstreamRequest) Reset ¶
func (m *CreateUpstreamRequest) Reset()
func (*CreateUpstreamRequest) String ¶
func (m *CreateUpstreamRequest) String() string
type CreateUserReply ¶
type CreateUserReply struct { User *User `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"` Err string `protobuf:"bytes,2,opt,name=err" json:"err,omitempty"` }
func (*CreateUserReply) Descriptor ¶
func (*CreateUserReply) Descriptor() ([]byte, []int)
func (*CreateUserReply) GetErr ¶
func (m *CreateUserReply) GetErr() string
func (*CreateUserReply) GetUser ¶
func (m *CreateUserReply) GetUser() *User
func (*CreateUserReply) ProtoMessage ¶
func (*CreateUserReply) ProtoMessage()
func (*CreateUserReply) Reset ¶
func (m *CreateUserReply) Reset()
func (*CreateUserReply) String ¶
func (m *CreateUserReply) String() string
type CreateUserRequest ¶
type CreateUserRequest struct {
User *User `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"`
}
func (*CreateUserRequest) Descriptor ¶
func (*CreateUserRequest) Descriptor() ([]byte, []int)
func (*CreateUserRequest) GetUser ¶
func (m *CreateUserRequest) GetUser() *User
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) Reset ¶
func (m *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (m *CreateUserRequest) String() string
type CreateVoteOptions ¶
type CreateVoteOptions struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` Branch string `protobuf:"bytes,2,opt,name=branch" json:"branch,omitempty"` Version string `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"` }
func (*CreateVoteOptions) Descriptor ¶
func (*CreateVoteOptions) Descriptor() ([]byte, []int)
func (*CreateVoteOptions) GetBranch ¶
func (m *CreateVoteOptions) GetBranch() string
func (*CreateVoteOptions) GetUsername ¶
func (m *CreateVoteOptions) GetUsername() string
func (*CreateVoteOptions) GetVersion ¶
func (m *CreateVoteOptions) GetVersion() string
func (*CreateVoteOptions) ProtoMessage ¶
func (*CreateVoteOptions) ProtoMessage()
func (*CreateVoteOptions) Reset ¶
func (m *CreateVoteOptions) Reset()
func (*CreateVoteOptions) String ¶
func (m *CreateVoteOptions) String() string
type CreateVoteReply ¶
type CreateVoteReply struct { Vote *Vote `protobuf:"bytes,1,opt,name=vote" json:"vote,omitempty"` Err string `protobuf:"bytes,2,opt,name=err" json:"err,omitempty"` }
func (*CreateVoteReply) Descriptor ¶
func (*CreateVoteReply) Descriptor() ([]byte, []int)
func (*CreateVoteReply) GetErr ¶
func (m *CreateVoteReply) GetErr() string
func (*CreateVoteReply) GetVote ¶
func (m *CreateVoteReply) GetVote() *Vote
func (*CreateVoteReply) ProtoMessage ¶
func (*CreateVoteReply) ProtoMessage()
func (*CreateVoteReply) Reset ¶
func (m *CreateVoteReply) Reset()
func (*CreateVoteReply) String ¶
func (m *CreateVoteReply) String() string
type CreateVoteRequest ¶
type CreateVoteRequest struct { Vote *Vote `protobuf:"bytes,1,opt,name=vote" json:"vote,omitempty"` Opts *CreateVoteOptions `protobuf:"bytes,2,opt,name=opts" json:"opts,omitempty"` }
func (*CreateVoteRequest) Descriptor ¶
func (*CreateVoteRequest) Descriptor() ([]byte, []int)
func (*CreateVoteRequest) GetOpts ¶
func (m *CreateVoteRequest) GetOpts() *CreateVoteOptions
func (*CreateVoteRequest) GetVote ¶
func (m *CreateVoteRequest) GetVote() *Vote
func (*CreateVoteRequest) ProtoMessage ¶
func (*CreateVoteRequest) ProtoMessage()
func (*CreateVoteRequest) Reset ¶
func (m *CreateVoteRequest) Reset()
func (*CreateVoteRequest) String ¶
func (m *CreateVoteRequest) String() string
type CreateVotesOptions ¶
type CreateVotesOptions struct {
VoteResult *VoteResult `protobuf:"bytes,1,opt,name=vote_result,json=voteResult" json:"vote_result,omitempty"`
}
func (*CreateVotesOptions) Descriptor ¶
func (*CreateVotesOptions) Descriptor() ([]byte, []int)
func (*CreateVotesOptions) GetVoteResult ¶
func (m *CreateVotesOptions) GetVoteResult() *VoteResult
func (*CreateVotesOptions) ProtoMessage ¶
func (*CreateVotesOptions) ProtoMessage()
func (*CreateVotesOptions) Reset ¶
func (m *CreateVotesOptions) Reset()
func (*CreateVotesOptions) String ¶
func (m *CreateVotesOptions) String() string
type DeleteCommentOptions ¶
type DeleteCommentOptions struct { }
func (*DeleteCommentOptions) Descriptor ¶
func (*DeleteCommentOptions) Descriptor() ([]byte, []int)
func (*DeleteCommentOptions) ProtoMessage ¶
func (*DeleteCommentOptions) ProtoMessage()
func (*DeleteCommentOptions) Reset ¶
func (m *DeleteCommentOptions) Reset()
func (*DeleteCommentOptions) String ¶
func (m *DeleteCommentOptions) String() string
type DeleteLawOptions ¶
type DeleteLawOptions struct { Branch string `protobuf:"bytes,1,opt,name=branch" json:"branch,omitempty"` Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` }
func (*DeleteLawOptions) Descriptor ¶
func (*DeleteLawOptions) Descriptor() ([]byte, []int)
func (*DeleteLawOptions) GetBranch ¶
func (m *DeleteLawOptions) GetBranch() string
func (*DeleteLawOptions) GetVersion ¶
func (m *DeleteLawOptions) GetVersion() string
func (*DeleteLawOptions) ProtoMessage ¶
func (*DeleteLawOptions) ProtoMessage()
func (*DeleteLawOptions) Reset ¶
func (m *DeleteLawOptions) Reset()
func (*DeleteLawOptions) String ¶
func (m *DeleteLawOptions) String() string
type DeleteLawReply ¶
type DeleteLawReply struct {
Err string `protobuf:"bytes,1,opt,name=err" json:"err,omitempty"`
}
func (*DeleteLawReply) Descriptor ¶
func (*DeleteLawReply) Descriptor() ([]byte, []int)
func (*DeleteLawReply) GetErr ¶
func (m *DeleteLawReply) GetErr() string
func (*DeleteLawReply) ProtoMessage ¶
func (*DeleteLawReply) ProtoMessage()
func (*DeleteLawReply) Reset ¶
func (m *DeleteLawReply) Reset()
func (*DeleteLawReply) String ¶
func (m *DeleteLawReply) String() string
type DeleteLawRequest ¶
type DeleteLawRequest struct { Upstream string `protobuf:"bytes,1,opt,name=upstream" json:"upstream,omitempty"` Ident string `protobuf:"bytes,2,opt,name=ident" json:"ident,omitempty"` Opts *DeleteLawOptions `protobuf:"bytes,3,opt,name=opts" json:"opts,omitempty"` }
func (*DeleteLawRequest) Descriptor ¶
func (*DeleteLawRequest) Descriptor() ([]byte, []int)
func (*DeleteLawRequest) GetIdent ¶
func (m *DeleteLawRequest) GetIdent() string
func (*DeleteLawRequest) GetOpts ¶
func (m *DeleteLawRequest) GetOpts() *DeleteLawOptions
func (*DeleteLawRequest) GetUpstream ¶
func (m *DeleteLawRequest) GetUpstream() string
func (*DeleteLawRequest) ProtoMessage ¶
func (*DeleteLawRequest) ProtoMessage()
func (*DeleteLawRequest) Reset ¶
func (m *DeleteLawRequest) Reset()
func (*DeleteLawRequest) String ¶
func (m *DeleteLawRequest) String() string
type DeleteVoteOptions ¶
type DeleteVoteOptions struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` Branch string `protobuf:"bytes,2,opt,name=branch" json:"branch,omitempty"` Version string `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"` }
func (*DeleteVoteOptions) Descriptor ¶
func (*DeleteVoteOptions) Descriptor() ([]byte, []int)
func (*DeleteVoteOptions) GetBranch ¶
func (m *DeleteVoteOptions) GetBranch() string
func (*DeleteVoteOptions) GetUsername ¶
func (m *DeleteVoteOptions) GetUsername() string
func (*DeleteVoteOptions) GetVersion ¶
func (m *DeleteVoteOptions) GetVersion() string
func (*DeleteVoteOptions) ProtoMessage ¶
func (*DeleteVoteOptions) ProtoMessage()
func (*DeleteVoteOptions) Reset ¶
func (m *DeleteVoteOptions) Reset()
func (*DeleteVoteOptions) String ¶
func (m *DeleteVoteOptions) String() string
type DeleteVoteReply ¶
type DeleteVoteReply struct {
Err string `protobuf:"bytes,1,opt,name=err" json:"err,omitempty"`
}
func (*DeleteVoteReply) Descriptor ¶
func (*DeleteVoteReply) Descriptor() ([]byte, []int)
func (*DeleteVoteReply) GetErr ¶
func (m *DeleteVoteReply) GetErr() string
func (*DeleteVoteReply) ProtoMessage ¶
func (*DeleteVoteReply) ProtoMessage()
func (*DeleteVoteReply) Reset ¶
func (m *DeleteVoteReply) Reset()
func (*DeleteVoteReply) String ¶
func (m *DeleteVoteReply) String() string
type DeleteVoteRequest ¶
type DeleteVoteRequest struct { Upstream string `protobuf:"bytes,1,opt,name=upstream" json:"upstream,omitempty"` Ident string `protobuf:"bytes,2,opt,name=ident" json:"ident,omitempty"` Opts *DeleteVoteOptions `protobuf:"bytes,3,opt,name=opts" json:"opts,omitempty"` }
func (*DeleteVoteRequest) Descriptor ¶
func (*DeleteVoteRequest) Descriptor() ([]byte, []int)
func (*DeleteVoteRequest) GetIdent ¶
func (m *DeleteVoteRequest) GetIdent() string
func (*DeleteVoteRequest) GetOpts ¶
func (m *DeleteVoteRequest) GetOpts() *DeleteVoteOptions
func (*DeleteVoteRequest) GetUpstream ¶
func (m *DeleteVoteRequest) GetUpstream() string
func (*DeleteVoteRequest) ProtoMessage ¶
func (*DeleteVoteRequest) ProtoMessage()
func (*DeleteVoteRequest) Reset ¶
func (m *DeleteVoteRequest) Reset()
func (*DeleteVoteRequest) String ¶
func (m *DeleteVoteRequest) String() string
type DiffLawsOptions ¶
type DiffLawsOptions struct { OurBranch string `protobuf:"bytes,1,opt,name=our_branch,json=ourBranch" json:"our_branch,omitempty"` OurVersion string `protobuf:"bytes,2,opt,name=our_version,json=ourVersion" json:"our_version,omitempty"` TheirBranch string `protobuf:"bytes,3,opt,name=their_branch,json=theirBranch" json:"their_branch,omitempty"` TheirVersion string `protobuf:"bytes,4,opt,name=their_version,json=theirVersion" json:"their_version,omitempty"` }
func (*DiffLawsOptions) Descriptor ¶
func (*DiffLawsOptions) Descriptor() ([]byte, []int)
func (*DiffLawsOptions) GetOurBranch ¶
func (m *DiffLawsOptions) GetOurBranch() string
func (*DiffLawsOptions) GetOurVersion ¶
func (m *DiffLawsOptions) GetOurVersion() string
func (*DiffLawsOptions) GetTheirBranch ¶
func (m *DiffLawsOptions) GetTheirBranch() string
func (*DiffLawsOptions) GetTheirVersion ¶
func (m *DiffLawsOptions) GetTheirVersion() string
func (*DiffLawsOptions) ProtoMessage ¶
func (*DiffLawsOptions) ProtoMessage()
func (*DiffLawsOptions) Reset ¶
func (m *DiffLawsOptions) Reset()
func (*DiffLawsOptions) String ¶
func (m *DiffLawsOptions) String() string
type DiffLawsReply ¶
type DiffLawsReply struct { Diff string `protobuf:"bytes,1,opt,name=diff" json:"diff,omitempty"` Theirs *LawSet `protobuf:"bytes,2,opt,name=theirs" json:"theirs,omitempty"` Err string `protobuf:"bytes,3,opt,name=err" json:"err,omitempty"` }
func (*DiffLawsReply) Descriptor ¶
func (*DiffLawsReply) Descriptor() ([]byte, []int)
func (*DiffLawsReply) GetDiff ¶
func (m *DiffLawsReply) GetDiff() string
func (*DiffLawsReply) GetErr ¶
func (m *DiffLawsReply) GetErr() string
func (*DiffLawsReply) GetTheirs ¶
func (m *DiffLawsReply) GetTheirs() *LawSet
func (*DiffLawsReply) ProtoMessage ¶
func (*DiffLawsReply) ProtoMessage()
func (*DiffLawsReply) Reset ¶
func (m *DiffLawsReply) Reset()
func (*DiffLawsReply) String ¶
func (m *DiffLawsReply) String() string
type DiffLawsRequest ¶
type DiffLawsRequest struct { Upstream string `protobuf:"bytes,1,opt,name=upstream" json:"upstream,omitempty"` Ident string `protobuf:"bytes,2,opt,name=ident" json:"ident,omitempty"` Opts *DiffLawsOptions `protobuf:"bytes,3,opt,name=opts" json:"opts,omitempty"` }
func (*DiffLawsRequest) Descriptor ¶
func (*DiffLawsRequest) Descriptor() ([]byte, []int)
func (*DiffLawsRequest) GetIdent ¶
func (m *DiffLawsRequest) GetIdent() string
func (*DiffLawsRequest) GetOpts ¶
func (m *DiffLawsRequest) GetOpts() *DiffLawsOptions
func (*DiffLawsRequest) GetUpstream ¶
func (m *DiffLawsRequest) GetUpstream() string
func (*DiffLawsRequest) ProtoMessage ¶
func (*DiffLawsRequest) ProtoMessage()
func (*DiffLawsRequest) Reset ¶
func (m *DiffLawsRequest) Reset()
func (*DiffLawsRequest) String ¶
func (m *DiffLawsRequest) String() string
type GetCommentOptions ¶
type GetCommentOptions struct { ReqType GetCommentOptions_RequestType `protobuf:"varint,1,opt,name=req_type,json=reqType,enum=proto.GetCommentOptions_RequestType" json:"req_type,omitempty"` Uid string `protobuf:"bytes,2,opt,name=uid" json:"uid,omitempty"` Upstream string `protobuf:"bytes,3,opt,name=upstream" json:"upstream,omitempty"` Ident string `protobuf:"bytes,4,opt,name=ident" json:"ident,omitempty"` Branch string `protobuf:"bytes,5,opt,name=branch" json:"branch,omitempty"` Version int32 `protobuf:"varint,6,opt,name=version" json:"version,omitempty"` Username string `protobuf:"bytes,7,opt,name=username" json:"username,omitempty"` Quiet bool `protobuf:"varint,8,opt,name=quiet" json:"quiet,omitempty"` }
func (*GetCommentOptions) Descriptor ¶
func (*GetCommentOptions) Descriptor() ([]byte, []int)
func (*GetCommentOptions) GetBranch ¶
func (m *GetCommentOptions) GetBranch() string
func (*GetCommentOptions) GetIdent ¶
func (m *GetCommentOptions) GetIdent() string
func (*GetCommentOptions) GetQuiet ¶
func (m *GetCommentOptions) GetQuiet() bool
func (*GetCommentOptions) GetReqType ¶
func (m *GetCommentOptions) GetReqType() GetCommentOptions_RequestType
func (*GetCommentOptions) GetUid ¶
func (m *GetCommentOptions) GetUid() string
func (*GetCommentOptions) GetUpstream ¶
func (m *GetCommentOptions) GetUpstream() string
func (*GetCommentOptions) GetUsername ¶
func (m *GetCommentOptions) GetUsername() string
func (*GetCommentOptions) GetVersion ¶
func (m *GetCommentOptions) GetVersion() int32
func (*GetCommentOptions) ProtoMessage ¶
func (*GetCommentOptions) ProtoMessage()
func (*GetCommentOptions) Reset ¶
func (m *GetCommentOptions) Reset()
func (*GetCommentOptions) String ¶
func (m *GetCommentOptions) String() string
type GetCommentOptions_RequestType ¶
type GetCommentOptions_RequestType int32
const ( GetCommentOptions_BY_USER_VERSION GetCommentOptions_RequestType = 0 GetCommentOptions_BY_UID GetCommentOptions_RequestType = 1 )
func (GetCommentOptions_RequestType) EnumDescriptor ¶
func (GetCommentOptions_RequestType) EnumDescriptor() ([]byte, []int)
func (GetCommentOptions_RequestType) String ¶
func (x GetCommentOptions_RequestType) String() string
type GetLawOptions ¶
type GetLawOptions struct { Branch string `protobuf:"bytes,1,opt,name=branch" json:"branch,omitempty"` Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` Profile bool `protobuf:"varint,3,opt,name=profile" json:"profile,omitempty"` }
func (*GetLawOptions) Descriptor ¶
func (*GetLawOptions) Descriptor() ([]byte, []int)
func (*GetLawOptions) GetBranch ¶
func (m *GetLawOptions) GetBranch() string
func (*GetLawOptions) GetProfile ¶
func (m *GetLawOptions) GetProfile() bool
func (*GetLawOptions) GetVersion ¶
func (m *GetLawOptions) GetVersion() string
func (*GetLawOptions) ProtoMessage ¶
func (*GetLawOptions) ProtoMessage()
func (*GetLawOptions) Reset ¶
func (m *GetLawOptions) Reset()
func (*GetLawOptions) String ¶
func (m *GetLawOptions) String() string
type GetLawReply ¶
type GetLawReply struct { LawSet *LawSet `protobuf:"bytes,1,opt,name=law_set,json=lawSet" json:"law_set,omitempty"` Branches []string `protobuf:"bytes,2,rep,name=branches" json:"branches,omitempty"` Err string `protobuf:"bytes,3,opt,name=err" json:"err,omitempty"` }
func (*GetLawReply) Descriptor ¶
func (*GetLawReply) Descriptor() ([]byte, []int)
func (*GetLawReply) GetBranches ¶
func (m *GetLawReply) GetBranches() []string
func (*GetLawReply) GetErr ¶
func (m *GetLawReply) GetErr() string
func (*GetLawReply) GetLawSet ¶
func (m *GetLawReply) GetLawSet() *LawSet
func (*GetLawReply) ProtoMessage ¶
func (*GetLawReply) ProtoMessage()
func (*GetLawReply) Reset ¶
func (m *GetLawReply) Reset()
func (*GetLawReply) String ¶
func (m *GetLawReply) String() string
type GetLawRequest ¶
type GetLawRequest struct { Upstream string `protobuf:"bytes,1,opt,name=upstream" json:"upstream,omitempty"` Ident string `protobuf:"bytes,2,opt,name=ident" json:"ident,omitempty"` Opts *GetLawOptions `protobuf:"bytes,3,opt,name=opts" json:"opts,omitempty"` }
func (*GetLawRequest) Descriptor ¶
func (*GetLawRequest) Descriptor() ([]byte, []int)
func (*GetLawRequest) GetIdent ¶
func (m *GetLawRequest) GetIdent() string
func (*GetLawRequest) GetOpts ¶
func (m *GetLawRequest) GetOpts() *GetLawOptions
func (*GetLawRequest) GetUpstream ¶
func (m *GetLawRequest) GetUpstream() string
func (*GetLawRequest) ProtoMessage ¶
func (*GetLawRequest) ProtoMessage()
func (*GetLawRequest) Reset ¶
func (m *GetLawRequest) Reset()
func (*GetLawRequest) String ¶
func (m *GetLawRequest) String() string
type GetUpstreamReply ¶
type GetUpstreamReply struct { Upstream *Upstream `protobuf:"bytes,1,opt,name=upstream" json:"upstream,omitempty"` Laws []*LawSet `protobuf:"bytes,2,rep,name=laws" json:"laws,omitempty"` Users []*User `protobuf:"bytes,3,rep,name=users" json:"users,omitempty"` Err string `protobuf:"bytes,4,opt,name=err" json:"err,omitempty"` }
func (*GetUpstreamReply) Descriptor ¶
func (*GetUpstreamReply) Descriptor() ([]byte, []int)
func (*GetUpstreamReply) GetErr ¶
func (m *GetUpstreamReply) GetErr() string
func (*GetUpstreamReply) GetLaws ¶
func (m *GetUpstreamReply) GetLaws() []*LawSet
func (*GetUpstreamReply) GetUpstream ¶
func (m *GetUpstreamReply) GetUpstream() *Upstream
func (*GetUpstreamReply) GetUsers ¶
func (m *GetUpstreamReply) GetUsers() []*User
func (*GetUpstreamReply) ProtoMessage ¶
func (*GetUpstreamReply) ProtoMessage()
func (*GetUpstreamReply) Reset ¶
func (m *GetUpstreamReply) Reset()
func (*GetUpstreamReply) String ¶
func (m *GetUpstreamReply) String() string
type GetUpstreamRequest ¶
type GetUpstreamRequest struct {
Ident string `protobuf:"bytes,1,opt,name=ident" json:"ident,omitempty"`
}
func (*GetUpstreamRequest) Descriptor ¶
func (*GetUpstreamRequest) Descriptor() ([]byte, []int)
func (*GetUpstreamRequest) GetIdent ¶
func (m *GetUpstreamRequest) GetIdent() string
func (*GetUpstreamRequest) ProtoMessage ¶
func (*GetUpstreamRequest) ProtoMessage()
func (*GetUpstreamRequest) Reset ¶
func (m *GetUpstreamRequest) Reset()
func (*GetUpstreamRequest) String ¶
func (m *GetUpstreamRequest) String() string
type GetUserOptions ¶
type GetUserOptions struct { ReqType GetUserOptions_RequestType `protobuf:"varint,1,opt,name=req_type,json=reqType,enum=proto.GetUserOptions_RequestType" json:"req_type,omitempty"` Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"` Uid string `protobuf:"bytes,3,opt,name=uid" json:"uid,omitempty"` Email string `protobuf:"bytes,4,opt,name=email" json:"email,omitempty"` Quiet bool `protobuf:"varint,5,opt,name=quiet" json:"quiet,omitempty"` }
func (*GetUserOptions) Descriptor ¶
func (*GetUserOptions) Descriptor() ([]byte, []int)
func (*GetUserOptions) GetEmail ¶
func (m *GetUserOptions) GetEmail() string
func (*GetUserOptions) GetQuiet ¶
func (m *GetUserOptions) GetQuiet() bool
func (*GetUserOptions) GetReqType ¶
func (m *GetUserOptions) GetReqType() GetUserOptions_RequestType
func (*GetUserOptions) GetUid ¶
func (m *GetUserOptions) GetUid() string
func (*GetUserOptions) GetUsername ¶
func (m *GetUserOptions) GetUsername() string
func (*GetUserOptions) ProtoMessage ¶
func (*GetUserOptions) ProtoMessage()
func (*GetUserOptions) Reset ¶
func (m *GetUserOptions) Reset()
func (*GetUserOptions) String ¶
func (m *GetUserOptions) String() string
type GetUserOptions_RequestType ¶
type GetUserOptions_RequestType int32
const ( GetUserOptions_BY_USERNAME GetUserOptions_RequestType = 0 GetUserOptions_BY_UID GetUserOptions_RequestType = 1 GetUserOptions_BY_CONTEXT GetUserOptions_RequestType = 2 )
func (GetUserOptions_RequestType) EnumDescriptor ¶
func (GetUserOptions_RequestType) EnumDescriptor() ([]byte, []int)
func (GetUserOptions_RequestType) String ¶
func (x GetUserOptions_RequestType) String() string
type GetUserReply ¶
type GetUserReply struct { User *User `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"` Owner bool `protobuf:"varint,3,opt,name=owner" json:"owner,omitempty"` Admin bool `protobuf:"varint,4,opt,name=admin" json:"admin,omitempty"` Err string `protobuf:"bytes,5,opt,name=err" json:"err,omitempty"` }
func (*GetUserReply) Descriptor ¶
func (*GetUserReply) Descriptor() ([]byte, []int)
func (*GetUserReply) GetAdmin ¶
func (m *GetUserReply) GetAdmin() bool
func (*GetUserReply) GetErr ¶
func (m *GetUserReply) GetErr() string
func (*GetUserReply) GetOwner ¶
func (m *GetUserReply) GetOwner() bool
func (*GetUserReply) GetUser ¶
func (m *GetUserReply) GetUser() *User
func (*GetUserReply) ProtoMessage ¶
func (*GetUserReply) ProtoMessage()
func (*GetUserReply) Reset ¶
func (m *GetUserReply) Reset()
func (*GetUserReply) String ¶
func (m *GetUserReply) String() string
type GetUserRequest ¶
type GetUserRequest struct {
Opts *GetUserOptions `protobuf:"bytes,1,opt,name=opts" json:"opts,omitempty"`
}
func (*GetUserRequest) Descriptor ¶
func (*GetUserRequest) Descriptor() ([]byte, []int)
func (*GetUserRequest) GetOpts ¶
func (m *GetUserRequest) GetOpts() *GetUserOptions
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) Reset ¶
func (m *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (m *GetUserRequest) String() string
type GetVoteOptions ¶
type GetVoteOptions struct { ReqType GetVoteOptions_RequestType `protobuf:"varint,1,opt,name=req_type,json=reqType,enum=proto.GetVoteOptions_RequestType" json:"req_type,omitempty"` Upstream string `protobuf:"bytes,2,opt,name=upstream" json:"upstream,omitempty"` Ident string `protobuf:"bytes,3,opt,name=ident" json:"ident,omitempty"` Username string `protobuf:"bytes,4,opt,name=username" json:"username,omitempty"` Branch string `protobuf:"bytes,5,opt,name=branch" json:"branch,omitempty"` Version string `protobuf:"bytes,6,opt,name=version" json:"version,omitempty"` Quiet bool `protobuf:"varint,7,opt,name=quiet" json:"quiet,omitempty"` }
func (*GetVoteOptions) Descriptor ¶
func (*GetVoteOptions) Descriptor() ([]byte, []int)
func (*GetVoteOptions) GetBranch ¶
func (m *GetVoteOptions) GetBranch() string
func (*GetVoteOptions) GetIdent ¶
func (m *GetVoteOptions) GetIdent() string
func (*GetVoteOptions) GetQuiet ¶
func (m *GetVoteOptions) GetQuiet() bool
func (*GetVoteOptions) GetReqType ¶
func (m *GetVoteOptions) GetReqType() GetVoteOptions_RequestType
func (*GetVoteOptions) GetUpstream ¶
func (m *GetVoteOptions) GetUpstream() string
func (*GetVoteOptions) GetUsername ¶
func (m *GetVoteOptions) GetUsername() string
func (*GetVoteOptions) GetVersion ¶
func (m *GetVoteOptions) GetVersion() string
func (*GetVoteOptions) ProtoMessage ¶
func (*GetVoteOptions) ProtoMessage()
func (*GetVoteOptions) Reset ¶
func (m *GetVoteOptions) Reset()
func (*GetVoteOptions) String ¶
func (m *GetVoteOptions) String() string
type GetVoteOptions_RequestType ¶
type GetVoteOptions_RequestType int32
const (
GetVoteOptions_BY_USER_VERSION GetVoteOptions_RequestType = 0
)
func (GetVoteOptions_RequestType) EnumDescriptor ¶
func (GetVoteOptions_RequestType) EnumDescriptor() ([]byte, []int)
func (GetVoteOptions_RequestType) String ¶
func (x GetVoteOptions_RequestType) String() string
type GetVoteReply ¶
type GetVoteReply struct { Vote *Vote `protobuf:"bytes,1,opt,name=vote" json:"vote,omitempty"` Err string `protobuf:"bytes,2,opt,name=err" json:"err,omitempty"` }
func (*GetVoteReply) Descriptor ¶
func (*GetVoteReply) Descriptor() ([]byte, []int)
func (*GetVoteReply) GetErr ¶
func (m *GetVoteReply) GetErr() string
func (*GetVoteReply) GetVote ¶
func (m *GetVoteReply) GetVote() *Vote
func (*GetVoteReply) ProtoMessage ¶
func (*GetVoteReply) ProtoMessage()
func (*GetVoteReply) Reset ¶
func (m *GetVoteReply) Reset()
func (*GetVoteReply) String ¶
func (m *GetVoteReply) String() string
type GetVoteRequest ¶
type GetVoteRequest struct {
Opts *GetVoteOptions `protobuf:"bytes,1,opt,name=opts" json:"opts,omitempty"`
}
func (*GetVoteRequest) Descriptor ¶
func (*GetVoteRequest) Descriptor() ([]byte, []int)
func (*GetVoteRequest) GetOpts ¶
func (m *GetVoteRequest) GetOpts() *GetVoteOptions
func (*GetVoteRequest) ProtoMessage ¶
func (*GetVoteRequest) ProtoMessage()
func (*GetVoteRequest) Reset ¶
func (m *GetVoteRequest) Reset()
func (*GetVoteRequest) String ¶
func (m *GetVoteRequest) String() string
type Law ¶
type Law struct { Uid string `protobuf:"bytes,1,opt,name=uid" json:"uid,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId" json:"user_id,omitempty"` Upstream string `protobuf:"bytes,3,opt,name=upstream" json:"upstream,omitempty"` Ident string `protobuf:"bytes,4,opt,name=ident" json:"ident,omitempty"` Title string `protobuf:"bytes,5,opt,name=title" json:"title,omitempty"` ShortTitle string `protobuf:"bytes,6,opt,name=short_title,json=shortTitle" json:"short_title,omitempty"` Description string `protobuf:"bytes,7,opt,name=description" json:"description,omitempty"` Url string `protobuf:"bytes,8,opt,name=url" json:"url,omitempty"` }
func (*Law) Descriptor ¶
func (*Law) GetDescription ¶
func (*Law) GetShortTitle ¶
func (*Law) GetUpstream ¶
func (*Law) ProtoMessage ¶
func (*Law) ProtoMessage()
type LawSet ¶
type LawSet struct { Law *Law `protobuf:"bytes,1,opt,name=law" json:"law,omitempty"` Branch *Branch `protobuf:"bytes,2,opt,name=branch" json:"branch,omitempty"` Version *Version `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"` Author *Author `protobuf:"bytes,4,opt,name=author" json:"author,omitempty"` User *User `protobuf:"bytes,5,opt,name=user" json:"user,omitempty"` }
func (*LawSet) Descriptor ¶
func (*LawSet) GetVersion ¶
func (*LawSet) ProtoMessage ¶
func (*LawSet) ProtoMessage()
type LikeCommentOptions ¶
type LikeCommentOptions struct { CommentId string `protobuf:"bytes,1,opt,name=comment_id,json=commentId" json:"comment_id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"` }
func (*LikeCommentOptions) Descriptor ¶
func (*LikeCommentOptions) Descriptor() ([]byte, []int)
func (*LikeCommentOptions) GetCommentId ¶
func (m *LikeCommentOptions) GetCommentId() string
func (*LikeCommentOptions) GetUsername ¶
func (m *LikeCommentOptions) GetUsername() string
func (*LikeCommentOptions) ProtoMessage ¶
func (*LikeCommentOptions) ProtoMessage()
func (*LikeCommentOptions) Reset ¶
func (m *LikeCommentOptions) Reset()
func (*LikeCommentOptions) String ¶
func (m *LikeCommentOptions) String() string
type ListAnnotationsOptions ¶
type ListAnnotationsOptions struct { ReqType ListAnnotationsOptions_RequestType `protobuf:"varint,1,opt,name=req_type,json=reqType,enum=proto.ListAnnotationsOptions_RequestType" json:"req_type,omitempty"` Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"` Uid string `protobuf:"bytes,3,opt,name=uid" json:"uid,omitempty"` CommentId string `protobuf:"bytes,4,opt,name=comment_id,json=commentId" json:"comment_id,omitempty"` }
func (*ListAnnotationsOptions) Descriptor ¶
func (*ListAnnotationsOptions) Descriptor() ([]byte, []int)
func (*ListAnnotationsOptions) GetCommentId ¶
func (m *ListAnnotationsOptions) GetCommentId() string
func (*ListAnnotationsOptions) GetReqType ¶
func (m *ListAnnotationsOptions) GetReqType() ListAnnotationsOptions_RequestType
func (*ListAnnotationsOptions) GetUid ¶
func (m *ListAnnotationsOptions) GetUid() string
func (*ListAnnotationsOptions) GetUsername ¶
func (m *ListAnnotationsOptions) GetUsername() string
func (*ListAnnotationsOptions) ProtoMessage ¶
func (*ListAnnotationsOptions) ProtoMessage()
func (*ListAnnotationsOptions) Reset ¶
func (m *ListAnnotationsOptions) Reset()
func (*ListAnnotationsOptions) String ¶
func (m *ListAnnotationsOptions) String() string
type ListAnnotationsOptions_RequestType ¶
type ListAnnotationsOptions_RequestType int32
const ( ListAnnotationsOptions_BY_USERNAME ListAnnotationsOptions_RequestType = 0 ListAnnotationsOptions_BY_UID ListAnnotationsOptions_RequestType = 1 ListAnnotationsOptions_BY_COMMENT ListAnnotationsOptions_RequestType = 2 )
func (ListAnnotationsOptions_RequestType) EnumDescriptor ¶
func (ListAnnotationsOptions_RequestType) EnumDescriptor() ([]byte, []int)
func (ListAnnotationsOptions_RequestType) String ¶
func (x ListAnnotationsOptions_RequestType) String() string
type ListCommentsOptions ¶
type ListCommentsOptions struct { ReqType ListCommentsOptions_RequestType `protobuf:"varint,1,opt,name=req_type,json=reqType,enum=proto.ListCommentsOptions_RequestType" json:"req_type,omitempty"` Upstream string `protobuf:"bytes,2,opt,name=upstream" json:"upstream,omitempty"` Ident string `protobuf:"bytes,3,opt,name=ident" json:"ident,omitempty"` Branch string `protobuf:"bytes,4,opt,name=branch" json:"branch,omitempty"` Version int32 `protobuf:"varint,5,opt,name=version" json:"version,omitempty"` Filter string `protobuf:"bytes,6,opt,name=filter" json:"filter,omitempty"` PageSize int32 `protobuf:"varint,7,opt,name=page_size,json=pageSize" json:"page_size,omitempty"` PageNum int32 `protobuf:"varint,8,opt,name=page_num,json=pageNum" json:"page_num,omitempty"` Desc bool `protobuf:"varint,9,opt,name=desc" json:"desc,omitempty"` Username string `protobuf:"bytes,10,opt,name=username" json:"username,omitempty"` OrderBy string `protobuf:"bytes,11,opt,name=order_by,json=orderBy" json:"order_by,omitempty"` }
func (*ListCommentsOptions) Descriptor ¶
func (*ListCommentsOptions) Descriptor() ([]byte, []int)
func (*ListCommentsOptions) GetBranch ¶
func (m *ListCommentsOptions) GetBranch() string
func (*ListCommentsOptions) GetDesc ¶
func (m *ListCommentsOptions) GetDesc() bool
func (*ListCommentsOptions) GetFilter ¶
func (m *ListCommentsOptions) GetFilter() string
func (*ListCommentsOptions) GetIdent ¶
func (m *ListCommentsOptions) GetIdent() string
func (*ListCommentsOptions) GetOrderBy ¶
func (m *ListCommentsOptions) GetOrderBy() string
func (*ListCommentsOptions) GetPageNum ¶
func (m *ListCommentsOptions) GetPageNum() int32
func (*ListCommentsOptions) GetPageSize ¶
func (m *ListCommentsOptions) GetPageSize() int32
func (*ListCommentsOptions) GetReqType ¶
func (m *ListCommentsOptions) GetReqType() ListCommentsOptions_RequestType
func (*ListCommentsOptions) GetUpstream ¶
func (m *ListCommentsOptions) GetUpstream() string
func (*ListCommentsOptions) GetUsername ¶
func (m *ListCommentsOptions) GetUsername() string
func (*ListCommentsOptions) GetVersion ¶
func (m *ListCommentsOptions) GetVersion() int32
func (*ListCommentsOptions) ProtoMessage ¶
func (*ListCommentsOptions) ProtoMessage()
func (*ListCommentsOptions) Reset ¶
func (m *ListCommentsOptions) Reset()
func (*ListCommentsOptions) String ¶
func (m *ListCommentsOptions) String() string
type ListCommentsOptions_RequestType ¶
type ListCommentsOptions_RequestType int32
const ( ListCommentsOptions_BY_USERNAME ListCommentsOptions_RequestType = 0 ListCommentsOptions_BY_VERSION ListCommentsOptions_RequestType = 1 )
func (ListCommentsOptions_RequestType) EnumDescriptor ¶
func (ListCommentsOptions_RequestType) EnumDescriptor() ([]byte, []int)
func (ListCommentsOptions_RequestType) String ¶
func (x ListCommentsOptions_RequestType) String() string
type ListLawsOptions ¶
type ListLawsOptions struct { Upstream string `protobuf:"bytes,1,opt,name=upstream" json:"upstream,omitempty"` Ident string `protobuf:"bytes,2,opt,name=ident" json:"ident,omitempty"` Branch string `protobuf:"bytes,3,opt,name=branch" json:"branch,omitempty"` Username string `protobuf:"bytes,4,opt,name=username" json:"username,omitempty"` FromDate string `protobuf:"bytes,5,opt,name=from_date,json=fromDate" json:"from_date,omitempty"` ToDate string `protobuf:"bytes,6,opt,name=to_date,json=toDate" json:"to_date,omitempty"` // int32 limit = 7; PageSize int32 `protobuf:"varint,8,opt,name=page_size,json=pageSize" json:"page_size,omitempty"` PageNum int32 `protobuf:"varint,9,opt,name=page_num,json=pageNum" json:"page_num,omitempty"` Desc bool `protobuf:"varint,11,opt,name=desc" json:"desc,omitempty"` OrderBy string `protobuf:"bytes,12,opt,name=order_by,json=orderBy" json:"order_by,omitempty"` Search string `protobuf:"bytes,13,opt,name=search" json:"search,omitempty"` ReqType ListLawsOptions_RequestType `protobuf:"varint,14,opt,name=req_type,json=reqType,enum=proto.ListLawsOptions_RequestType" json:"req_type,omitempty"` }
func (*ListLawsOptions) Descriptor ¶
func (*ListLawsOptions) Descriptor() ([]byte, []int)
func (*ListLawsOptions) GetBranch ¶
func (m *ListLawsOptions) GetBranch() string
func (*ListLawsOptions) GetDesc ¶
func (m *ListLawsOptions) GetDesc() bool
func (*ListLawsOptions) GetFromDate ¶
func (m *ListLawsOptions) GetFromDate() string
func (*ListLawsOptions) GetIdent ¶
func (m *ListLawsOptions) GetIdent() string
func (*ListLawsOptions) GetOrderBy ¶
func (m *ListLawsOptions) GetOrderBy() string
func (*ListLawsOptions) GetPageNum ¶
func (m *ListLawsOptions) GetPageNum() int32
func (*ListLawsOptions) GetPageSize ¶
func (m *ListLawsOptions) GetPageSize() int32
func (*ListLawsOptions) GetReqType ¶
func (m *ListLawsOptions) GetReqType() ListLawsOptions_RequestType
func (*ListLawsOptions) GetSearch ¶
func (m *ListLawsOptions) GetSearch() string
func (*ListLawsOptions) GetToDate ¶
func (m *ListLawsOptions) GetToDate() string
func (*ListLawsOptions) GetUpstream ¶
func (m *ListLawsOptions) GetUpstream() string
func (*ListLawsOptions) GetUsername ¶
func (m *ListLawsOptions) GetUsername() string
func (*ListLawsOptions) ProtoMessage ¶
func (*ListLawsOptions) ProtoMessage()
func (*ListLawsOptions) Reset ¶
func (m *ListLawsOptions) Reset()
func (*ListLawsOptions) String ¶
func (m *ListLawsOptions) String() string
type ListLawsOptions_RequestType ¶
type ListLawsOptions_RequestType int32
const ( ListLawsOptions_USER_LAWS ListLawsOptions_RequestType = 0 ListLawsOptions_UPSTREAM_LAWS ListLawsOptions_RequestType = 1 ListLawsOptions_SEARCH ListLawsOptions_RequestType = 2 ListLawsOptions_LAW_BRANCHES ListLawsOptions_RequestType = 3 ListLawsOptions_BRANCH_VERSIONS ListLawsOptions_RequestType = 4 )
func (ListLawsOptions_RequestType) EnumDescriptor ¶
func (ListLawsOptions_RequestType) EnumDescriptor() ([]byte, []int)
func (ListLawsOptions_RequestType) String ¶
func (x ListLawsOptions_RequestType) String() string
type ListLawsReply ¶
type ListLawsReply struct { LawSets []*LawSet `protobuf:"bytes,1,rep,name=law_sets,json=lawSets" json:"law_sets,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total" json:"total,omitempty"` Suggestions []string `protobuf:"bytes,3,rep,name=suggestions" json:"suggestions,omitempty"` Err string `protobuf:"bytes,4,opt,name=err" json:"err,omitempty"` }
func (*ListLawsReply) Descriptor ¶
func (*ListLawsReply) Descriptor() ([]byte, []int)
func (*ListLawsReply) GetErr ¶
func (m *ListLawsReply) GetErr() string
func (*ListLawsReply) GetLawSets ¶
func (m *ListLawsReply) GetLawSets() []*LawSet
func (*ListLawsReply) GetSuggestions ¶
func (m *ListLawsReply) GetSuggestions() []string
func (*ListLawsReply) GetTotal ¶
func (m *ListLawsReply) GetTotal() int32
func (*ListLawsReply) ProtoMessage ¶
func (*ListLawsReply) ProtoMessage()
func (*ListLawsReply) Reset ¶
func (m *ListLawsReply) Reset()
func (*ListLawsReply) String ¶
func (m *ListLawsReply) String() string
type ListLawsRequest ¶
type ListLawsRequest struct {
Opts *ListLawsOptions `protobuf:"bytes,1,opt,name=opts" json:"opts,omitempty"`
}
func (*ListLawsRequest) Descriptor ¶
func (*ListLawsRequest) Descriptor() ([]byte, []int)
func (*ListLawsRequest) GetOpts ¶
func (m *ListLawsRequest) GetOpts() *ListLawsOptions
func (*ListLawsRequest) ProtoMessage ¶
func (*ListLawsRequest) ProtoMessage()
func (*ListLawsRequest) Reset ¶
func (m *ListLawsRequest) Reset()
func (*ListLawsRequest) String ¶
func (m *ListLawsRequest) String() string
type ListUpstreamsReply ¶
type ListUpstreamsReply struct { Upstreams []*Upstream `protobuf:"bytes,1,rep,name=upstreams" json:"upstreams,omitempty"` Err string `protobuf:"bytes,2,opt,name=err" json:"err,omitempty"` }
func (*ListUpstreamsReply) Descriptor ¶
func (*ListUpstreamsReply) Descriptor() ([]byte, []int)
func (*ListUpstreamsReply) GetErr ¶
func (m *ListUpstreamsReply) GetErr() string
func (*ListUpstreamsReply) GetUpstreams ¶
func (m *ListUpstreamsReply) GetUpstreams() []*Upstream
func (*ListUpstreamsReply) ProtoMessage ¶
func (*ListUpstreamsReply) ProtoMessage()
func (*ListUpstreamsReply) Reset ¶
func (m *ListUpstreamsReply) Reset()
func (*ListUpstreamsReply) String ¶
func (m *ListUpstreamsReply) String() string
type ListUpstreamsRequest ¶
type ListUpstreamsRequest struct { }
func (*ListUpstreamsRequest) Descriptor ¶
func (*ListUpstreamsRequest) Descriptor() ([]byte, []int)
func (*ListUpstreamsRequest) ProtoMessage ¶
func (*ListUpstreamsRequest) ProtoMessage()
func (*ListUpstreamsRequest) Reset ¶
func (m *ListUpstreamsRequest) Reset()
func (*ListUpstreamsRequest) String ¶
func (m *ListUpstreamsRequest) String() string
type ListUsersOptions ¶
type ListUsersOptions struct { // string type = 1; Upstream string `protobuf:"bytes,2,opt,name=upstream" json:"upstream,omitempty"` All bool `protobuf:"varint,3,opt,name=all" json:"all,omitempty"` Limit int32 `protobuf:"varint,4,opt,name=limit" json:"limit,omitempty"` PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize" json:"page_size,omitempty"` PageNum int32 `protobuf:"varint,6,opt,name=page_num,json=pageNum" json:"page_num,omitempty"` Search string `protobuf:"bytes,7,opt,name=search" json:"search,omitempty"` ReqType ListUsersOptions_RequestType `protobuf:"varint,8,opt,name=req_type,json=reqType,enum=proto.ListUsersOptions_RequestType" json:"req_type,omitempty"` }
func (*ListUsersOptions) Descriptor ¶
func (*ListUsersOptions) Descriptor() ([]byte, []int)
func (*ListUsersOptions) GetAll ¶
func (m *ListUsersOptions) GetAll() bool
func (*ListUsersOptions) GetLimit ¶
func (m *ListUsersOptions) GetLimit() int32
func (*ListUsersOptions) GetPageNum ¶
func (m *ListUsersOptions) GetPageNum() int32
func (*ListUsersOptions) GetPageSize ¶
func (m *ListUsersOptions) GetPageSize() int32
func (*ListUsersOptions) GetReqType ¶
func (m *ListUsersOptions) GetReqType() ListUsersOptions_RequestType
func (*ListUsersOptions) GetSearch ¶
func (m *ListUsersOptions) GetSearch() string
func (*ListUsersOptions) GetUpstream ¶
func (m *ListUsersOptions) GetUpstream() string
func (*ListUsersOptions) ProtoMessage ¶
func (*ListUsersOptions) ProtoMessage()
func (*ListUsersOptions) Reset ¶
func (m *ListUsersOptions) Reset()
func (*ListUsersOptions) String ¶
func (m *ListUsersOptions) String() string
type ListUsersOptions_RequestType ¶
type ListUsersOptions_RequestType int32
const ( ListUsersOptions_BY_UPSTREAM ListUsersOptions_RequestType = 0 ListUsersOptions_ALL ListUsersOptions_RequestType = 1 )
func (ListUsersOptions_RequestType) EnumDescriptor ¶
func (ListUsersOptions_RequestType) EnumDescriptor() ([]byte, []int)
func (ListUsersOptions_RequestType) String ¶
func (x ListUsersOptions_RequestType) String() string
type ListUsersReply ¶
type ListUsersReply struct { Users []*User `protobuf:"bytes,1,rep,name=users" json:"users,omitempty"` Err string `protobuf:"bytes,2,opt,name=err" json:"err,omitempty"` }
func (*ListUsersReply) Descriptor ¶
func (*ListUsersReply) Descriptor() ([]byte, []int)
func (*ListUsersReply) GetErr ¶
func (m *ListUsersReply) GetErr() string
func (*ListUsersReply) GetUsers ¶
func (m *ListUsersReply) GetUsers() []*User
func (*ListUsersReply) ProtoMessage ¶
func (*ListUsersReply) ProtoMessage()
func (*ListUsersReply) Reset ¶
func (m *ListUsersReply) Reset()
func (*ListUsersReply) String ¶
func (m *ListUsersReply) String() string
type ListUsersRequest ¶
type ListUsersRequest struct {
Opts *ListUsersOptions `protobuf:"bytes,1,opt,name=opts" json:"opts,omitempty"`
}
func (*ListUsersRequest) Descriptor ¶
func (*ListUsersRequest) Descriptor() ([]byte, []int)
func (*ListUsersRequest) GetOpts ¶
func (m *ListUsersRequest) GetOpts() *ListUsersOptions
func (*ListUsersRequest) ProtoMessage ¶
func (*ListUsersRequest) ProtoMessage()
func (*ListUsersRequest) Reset ¶
func (m *ListUsersRequest) Reset()
func (*ListUsersRequest) String ¶
func (m *ListUsersRequest) String() string
type ListVotesOptions ¶
type ListVotesOptions struct { Category string `protobuf:"bytes,1,opt,name=category" json:"category,omitempty"` Upstream string `protobuf:"bytes,2,opt,name=upstream" json:"upstream,omitempty"` Ident string `protobuf:"bytes,3,opt,name=ident" json:"ident,omitempty"` Branch string `protobuf:"bytes,4,opt,name=branch" json:"branch,omitempty"` Version uint32 `protobuf:"varint,5,opt,name=version" json:"version,omitempty"` Username string `protobuf:"bytes,6,opt,name=username" json:"username,omitempty"` PageSize uint32 `protobuf:"varint,7,opt,name=page_size,json=pageSize" json:"page_size,omitempty"` PageNum uint32 `protobuf:"varint,8,opt,name=page_num,json=pageNum" json:"page_num,omitempty"` }
func (*ListVotesOptions) Descriptor ¶
func (*ListVotesOptions) Descriptor() ([]byte, []int)
func (*ListVotesOptions) GetBranch ¶
func (m *ListVotesOptions) GetBranch() string
func (*ListVotesOptions) GetCategory ¶
func (m *ListVotesOptions) GetCategory() string
func (*ListVotesOptions) GetIdent ¶
func (m *ListVotesOptions) GetIdent() string
func (*ListVotesOptions) GetPageNum ¶
func (m *ListVotesOptions) GetPageNum() uint32
func (*ListVotesOptions) GetPageSize ¶
func (m *ListVotesOptions) GetPageSize() uint32
func (*ListVotesOptions) GetUpstream ¶
func (m *ListVotesOptions) GetUpstream() string
func (*ListVotesOptions) GetUsername ¶
func (m *ListVotesOptions) GetUsername() string
func (*ListVotesOptions) GetVersion ¶
func (m *ListVotesOptions) GetVersion() uint32
func (*ListVotesOptions) ProtoMessage ¶
func (*ListVotesOptions) ProtoMessage()
func (*ListVotesOptions) Reset ¶
func (m *ListVotesOptions) Reset()
func (*ListVotesOptions) String ¶
func (m *ListVotesOptions) String() string
type ListVotesReply ¶
type ListVotesReply struct { Votes []*Vote `protobuf:"bytes,1,rep,name=votes" json:"votes,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total" json:"total,omitempty"` Err string `protobuf:"bytes,3,opt,name=err" json:"err,omitempty"` }
func (*ListVotesReply) Descriptor ¶
func (*ListVotesReply) Descriptor() ([]byte, []int)
func (*ListVotesReply) GetErr ¶
func (m *ListVotesReply) GetErr() string
func (*ListVotesReply) GetTotal ¶
func (m *ListVotesReply) GetTotal() int32
func (*ListVotesReply) GetVotes ¶
func (m *ListVotesReply) GetVotes() []*Vote
func (*ListVotesReply) ProtoMessage ¶
func (*ListVotesReply) ProtoMessage()
func (*ListVotesReply) Reset ¶
func (m *ListVotesReply) Reset()
func (*ListVotesReply) String ¶
func (m *ListVotesReply) String() string
type ListVotesRequest ¶
type ListVotesRequest struct {
Opts *ListVotesOptions `protobuf:"bytes,1,opt,name=opts" json:"opts,omitempty"`
}
func (*ListVotesRequest) Descriptor ¶
func (*ListVotesRequest) Descriptor() ([]byte, []int)
func (*ListVotesRequest) GetOpts ¶
func (m *ListVotesRequest) GetOpts() *ListVotesOptions
func (*ListVotesRequest) ProtoMessage ¶
func (*ListVotesRequest) ProtoMessage()
func (*ListVotesRequest) Reset ¶
func (m *ListVotesRequest) Reset()
func (*ListVotesRequest) String ¶
func (m *ListVotesRequest) String() string
type LoadReposOptions ¶
type LoadReposOptions struct { }
func (*LoadReposOptions) Descriptor ¶
func (*LoadReposOptions) Descriptor() ([]byte, []int)
func (*LoadReposOptions) ProtoMessage ¶
func (*LoadReposOptions) ProtoMessage()
func (*LoadReposOptions) Reset ¶
func (m *LoadReposOptions) Reset()
func (*LoadReposOptions) String ¶
func (m *LoadReposOptions) String() string
type LoadReposReply ¶
type LoadReposReply struct { }
func (*LoadReposReply) Descriptor ¶
func (*LoadReposReply) Descriptor() ([]byte, []int)
func (*LoadReposReply) ProtoMessage ¶
func (*LoadReposReply) ProtoMessage()
func (*LoadReposReply) Reset ¶
func (m *LoadReposReply) Reset()
func (*LoadReposReply) String ¶
func (m *LoadReposReply) String() string
type LoginAsReply ¶
type LoginAsReply struct {
Err string `protobuf:"bytes,1,opt,name=err" json:"err,omitempty"`
}
func (*LoginAsReply) Descriptor ¶
func (*LoginAsReply) Descriptor() ([]byte, []int)
func (*LoginAsReply) GetErr ¶
func (m *LoginAsReply) GetErr() string
func (*LoginAsReply) ProtoMessage ¶
func (*LoginAsReply) ProtoMessage()
func (*LoginAsReply) Reset ¶
func (m *LoginAsReply) Reset()
func (*LoginAsReply) String ¶
func (m *LoginAsReply) String() string
type LoginAsRequest ¶
type LoginAsRequest struct {
Authorization *Authorization `protobuf:"bytes,1,opt,name=authorization" json:"authorization,omitempty"`
}
func (*LoginAsRequest) Descriptor ¶
func (*LoginAsRequest) Descriptor() ([]byte, []int)
func (*LoginAsRequest) GetAuthorization ¶
func (m *LoginAsRequest) GetAuthorization() *Authorization
func (*LoginAsRequest) ProtoMessage ¶
func (*LoginAsRequest) ProtoMessage()
func (*LoginAsRequest) Reset ¶
func (m *LoginAsRequest) Reset()
func (*LoginAsRequest) String ¶
func (m *LoginAsRequest) String() string
type LoginReply ¶
type LoginReply struct { State string `protobuf:"bytes,1,opt,name=state" json:"state,omitempty"` Url string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"` Err string `protobuf:"bytes,3,opt,name=err" json:"err,omitempty"` }
func (*LoginReply) Descriptor ¶
func (*LoginReply) Descriptor() ([]byte, []int)
func (*LoginReply) GetErr ¶
func (m *LoginReply) GetErr() string
func (*LoginReply) GetState ¶
func (m *LoginReply) GetState() string
func (*LoginReply) GetUrl ¶
func (m *LoginReply) GetUrl() string
func (*LoginReply) ProtoMessage ¶
func (*LoginReply) ProtoMessage()
func (*LoginReply) Reset ¶
func (m *LoginReply) Reset()
func (*LoginReply) String ¶
func (m *LoginReply) String() string
type LoginRequest ¶
type LoginRequest struct { }
func (*LoginRequest) Descriptor ¶
func (*LoginRequest) Descriptor() ([]byte, []int)
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) Reset ¶
func (m *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (m *LoginRequest) String() string
type LoginUserReply ¶
type LoginUserReply struct { Authorization *Authorization `protobuf:"bytes,1,opt,name=authorization" json:"authorization,omitempty"` Err string `protobuf:"bytes,2,opt,name=err" json:"err,omitempty"` }
func (*LoginUserReply) Descriptor ¶
func (*LoginUserReply) Descriptor() ([]byte, []int)
func (*LoginUserReply) GetAuthorization ¶
func (m *LoginUserReply) GetAuthorization() *Authorization
func (*LoginUserReply) GetErr ¶
func (m *LoginUserReply) GetErr() string
func (*LoginUserReply) ProtoMessage ¶
func (*LoginUserReply) ProtoMessage()
func (*LoginUserReply) Reset ¶
func (m *LoginUserReply) Reset()
func (*LoginUserReply) String ¶
func (m *LoginUserReply) String() string
type LoginUserRequest ¶
type LoginUserRequest struct { State string `protobuf:"bytes,1,opt,name=state" json:"state,omitempty"` Code string `protobuf:"bytes,2,opt,name=code" json:"code,omitempty"` }
func (*LoginUserRequest) Descriptor ¶
func (*LoginUserRequest) Descriptor() ([]byte, []int)
func (*LoginUserRequest) GetCode ¶
func (m *LoginUserRequest) GetCode() string
func (*LoginUserRequest) GetState ¶
func (m *LoginUserRequest) GetState() string
func (*LoginUserRequest) ProtoMessage ¶
func (*LoginUserRequest) ProtoMessage()
func (*LoginUserRequest) Reset ¶
func (m *LoginUserRequest) Reset()
func (*LoginUserRequest) String ¶
func (m *LoginUserRequest) String() string
type LogoutReply ¶
type LogoutReply struct {
Err string `protobuf:"bytes,1,opt,name=err" json:"err,omitempty"`
}
func (*LogoutReply) Descriptor ¶
func (*LogoutReply) Descriptor() ([]byte, []int)
func (*LogoutReply) GetErr ¶
func (m *LogoutReply) GetErr() string
func (*LogoutReply) ProtoMessage ¶
func (*LogoutReply) ProtoMessage()
func (*LogoutReply) Reset ¶
func (m *LogoutReply) Reset()
func (*LogoutReply) String ¶
func (m *LogoutReply) String() string
type LogoutRequest ¶
type LogoutRequest struct { }
func (*LogoutRequest) Descriptor ¶
func (*LogoutRequest) Descriptor() ([]byte, []int)
func (*LogoutRequest) ProtoMessage ¶
func (*LogoutRequest) ProtoMessage()
func (*LogoutRequest) Reset ¶
func (m *LogoutRequest) Reset()
func (*LogoutRequest) String ¶
func (m *LogoutRequest) String() string
type MakeTokenReply ¶
type MakeTokenReply struct { Token string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"` Url string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"` Err string `protobuf:"bytes,3,opt,name=err" json:"err,omitempty"` }
func (*MakeTokenReply) Descriptor ¶
func (*MakeTokenReply) Descriptor() ([]byte, []int)
func (*MakeTokenReply) GetErr ¶
func (m *MakeTokenReply) GetErr() string
func (*MakeTokenReply) GetToken ¶
func (m *MakeTokenReply) GetToken() string
func (*MakeTokenReply) GetUrl ¶
func (m *MakeTokenReply) GetUrl() string
func (*MakeTokenReply) ProtoMessage ¶
func (*MakeTokenReply) ProtoMessage()
func (*MakeTokenReply) Reset ¶
func (m *MakeTokenReply) Reset()
func (*MakeTokenReply) String ¶
func (m *MakeTokenReply) String() string
type MakeTokenRequest ¶
type MakeTokenRequest struct {
Uid string `protobuf:"bytes,1,opt,name=uid" json:"uid,omitempty"`
}
func (*MakeTokenRequest) Descriptor ¶
func (*MakeTokenRequest) Descriptor() ([]byte, []int)
func (*MakeTokenRequest) GetUid ¶
func (m *MakeTokenRequest) GetUid() string
func (*MakeTokenRequest) ProtoMessage ¶
func (*MakeTokenRequest) ProtoMessage()
func (*MakeTokenRequest) Reset ¶
func (m *MakeTokenRequest) Reset()
func (*MakeTokenRequest) String ¶
func (m *MakeTokenRequest) String() string
type RegisterUserReply ¶
type RegisterUserReply struct {
Err string `protobuf:"bytes,1,opt,name=err" json:"err,omitempty"`
}
func (*RegisterUserReply) Descriptor ¶
func (*RegisterUserReply) Descriptor() ([]byte, []int)
func (*RegisterUserReply) GetErr ¶
func (m *RegisterUserReply) GetErr() string
func (*RegisterUserReply) ProtoMessage ¶
func (*RegisterUserReply) ProtoMessage()
func (*RegisterUserReply) Reset ¶
func (m *RegisterUserReply) Reset()
func (*RegisterUserReply) String ¶
func (m *RegisterUserReply) String() string
type RegisterUserRequest ¶
type RegisterUserRequest struct { Uid string `protobuf:"bytes,1,opt,name=uid" json:"uid,omitempty"` Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"` }
func (*RegisterUserRequest) Descriptor ¶
func (*RegisterUserRequest) Descriptor() ([]byte, []int)
func (*RegisterUserRequest) GetUid ¶
func (m *RegisterUserRequest) GetUid() string
func (*RegisterUserRequest) GetUsername ¶
func (m *RegisterUserRequest) GetUsername() string
func (*RegisterUserRequest) ProtoMessage ¶
func (*RegisterUserRequest) ProtoMessage()
func (*RegisterUserRequest) Reset ¶
func (m *RegisterUserRequest) Reset()
func (*RegisterUserRequest) String ¶
func (m *RegisterUserRequest) String() string
type SaveReposOptions ¶
type SaveReposOptions struct {
ReqType SaveReposOptions_RequestType `protobuf:"varint,1,opt,name=req_type,json=reqType,enum=proto.SaveReposOptions_RequestType" json:"req_type,omitempty"`
}
func (*SaveReposOptions) Descriptor ¶
func (*SaveReposOptions) Descriptor() ([]byte, []int)
func (*SaveReposOptions) GetReqType ¶
func (m *SaveReposOptions) GetReqType() SaveReposOptions_RequestType
func (*SaveReposOptions) ProtoMessage ¶
func (*SaveReposOptions) ProtoMessage()
func (*SaveReposOptions) Reset ¶
func (m *SaveReposOptions) Reset()
func (*SaveReposOptions) String ¶
func (m *SaveReposOptions) String() string
type SaveReposOptions_RequestType ¶
type SaveReposOptions_RequestType int32
const ( SaveReposOptions_SAVE SaveReposOptions_RequestType = 0 SaveReposOptions_LOAD SaveReposOptions_RequestType = 1 )
func (SaveReposOptions_RequestType) EnumDescriptor ¶
func (SaveReposOptions_RequestType) EnumDescriptor() ([]byte, []int)
func (SaveReposOptions_RequestType) String ¶
func (x SaveReposOptions_RequestType) String() string
type SaveReposReply ¶
type SaveReposReply struct { }
func (*SaveReposReply) Descriptor ¶
func (*SaveReposReply) Descriptor() ([]byte, []int)
func (*SaveReposReply) ProtoMessage ¶
func (*SaveReposReply) ProtoMessage()
func (*SaveReposReply) Reset ¶
func (m *SaveReposReply) Reset()
func (*SaveReposReply) String ¶
func (m *SaveReposReply) String() string
type ServerStats ¶
type ServerStats struct { Upstreams string `protobuf:"bytes,1,opt,name=upstreams" json:"upstreams,omitempty"` Users string `protobuf:"bytes,2,opt,name=users" json:"users,omitempty"` Laws string `protobuf:"bytes,3,opt,name=laws" json:"laws,omitempty"` Branches string `protobuf:"bytes,4,opt,name=branches" json:"branches,omitempty"` Versions string `protobuf:"bytes,5,opt,name=versions" json:"versions,omitempty"` Votes string `protobuf:"bytes,6,opt,name=votes" json:"votes,omitempty"` }
func (*ServerStats) Descriptor ¶
func (*ServerStats) Descriptor() ([]byte, []int)
func (*ServerStats) GetBranches ¶
func (m *ServerStats) GetBranches() string
func (*ServerStats) GetLaws ¶
func (m *ServerStats) GetLaws() string
func (*ServerStats) GetUpstreams ¶
func (m *ServerStats) GetUpstreams() string
func (*ServerStats) GetUsers ¶
func (m *ServerStats) GetUsers() string
func (*ServerStats) GetVersions ¶
func (m *ServerStats) GetVersions() string
func (*ServerStats) GetVotes ¶
func (m *ServerStats) GetVotes() string
func (*ServerStats) ProtoMessage ¶
func (*ServerStats) ProtoMessage()
func (*ServerStats) Reset ¶
func (m *ServerStats) Reset()
func (*ServerStats) String ¶
func (m *ServerStats) String() string
type UpdateCommentOptions ¶
type UpdateCommentOptions struct { }
func (*UpdateCommentOptions) Descriptor ¶
func (*UpdateCommentOptions) Descriptor() ([]byte, []int)
func (*UpdateCommentOptions) ProtoMessage ¶
func (*UpdateCommentOptions) ProtoMessage()
func (*UpdateCommentOptions) Reset ¶
func (m *UpdateCommentOptions) Reset()
func (*UpdateCommentOptions) String ¶
func (m *UpdateCommentOptions) String() string
type UpdateLawOptions ¶
type UpdateLawOptions struct { Branch string `protobuf:"bytes,1,opt,name=branch" json:"branch,omitempty"` Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` }
func (*UpdateLawOptions) Descriptor ¶
func (*UpdateLawOptions) Descriptor() ([]byte, []int)
func (*UpdateLawOptions) GetBranch ¶
func (m *UpdateLawOptions) GetBranch() string
func (*UpdateLawOptions) GetVersion ¶
func (m *UpdateLawOptions) GetVersion() string
func (*UpdateLawOptions) ProtoMessage ¶
func (*UpdateLawOptions) ProtoMessage()
func (*UpdateLawOptions) Reset ¶
func (m *UpdateLawOptions) Reset()
func (*UpdateLawOptions) String ¶
func (m *UpdateLawOptions) String() string
type UpdateLawReply ¶
type UpdateLawReply struct {
Err string `protobuf:"bytes,1,opt,name=err" json:"err,omitempty"`
}
func (*UpdateLawReply) Descriptor ¶
func (*UpdateLawReply) Descriptor() ([]byte, []int)
func (*UpdateLawReply) GetErr ¶
func (m *UpdateLawReply) GetErr() string
func (*UpdateLawReply) ProtoMessage ¶
func (*UpdateLawReply) ProtoMessage()
func (*UpdateLawReply) Reset ¶
func (m *UpdateLawReply) Reset()
func (*UpdateLawReply) String ¶
func (m *UpdateLawReply) String() string
type UpdateLawRequest ¶
type UpdateLawRequest struct { Law *Law `protobuf:"bytes,1,opt,name=law" json:"law,omitempty"` Opts *UpdateLawOptions `protobuf:"bytes,2,opt,name=opts" json:"opts,omitempty"` }
func (*UpdateLawRequest) Descriptor ¶
func (*UpdateLawRequest) Descriptor() ([]byte, []int)
func (*UpdateLawRequest) GetLaw ¶
func (m *UpdateLawRequest) GetLaw() *Law
func (*UpdateLawRequest) GetOpts ¶
func (m *UpdateLawRequest) GetOpts() *UpdateLawOptions
func (*UpdateLawRequest) ProtoMessage ¶
func (*UpdateLawRequest) ProtoMessage()
func (*UpdateLawRequest) Reset ¶
func (m *UpdateLawRequest) Reset()
func (*UpdateLawRequest) String ¶
func (m *UpdateLawRequest) String() string
type UpdateUpstreamReply ¶
type UpdateUpstreamReply struct {
Err string `protobuf:"bytes,1,opt,name=err" json:"err,omitempty"`
}
func (*UpdateUpstreamReply) Descriptor ¶
func (*UpdateUpstreamReply) Descriptor() ([]byte, []int)
func (*UpdateUpstreamReply) GetErr ¶
func (m *UpdateUpstreamReply) GetErr() string
func (*UpdateUpstreamReply) ProtoMessage ¶
func (*UpdateUpstreamReply) ProtoMessage()
func (*UpdateUpstreamReply) Reset ¶
func (m *UpdateUpstreamReply) Reset()
func (*UpdateUpstreamReply) String ¶
func (m *UpdateUpstreamReply) String() string
type UpdateUpstreamRequest ¶
type UpdateUpstreamRequest struct {
Upstream *Upstream `protobuf:"bytes,1,opt,name=upstream" json:"upstream,omitempty"`
}
func (*UpdateUpstreamRequest) Descriptor ¶
func (*UpdateUpstreamRequest) Descriptor() ([]byte, []int)
func (*UpdateUpstreamRequest) GetUpstream ¶
func (m *UpdateUpstreamRequest) GetUpstream() *Upstream
func (*UpdateUpstreamRequest) ProtoMessage ¶
func (*UpdateUpstreamRequest) ProtoMessage()
func (*UpdateUpstreamRequest) Reset ¶
func (m *UpdateUpstreamRequest) Reset()
func (*UpdateUpstreamRequest) String ¶
func (m *UpdateUpstreamRequest) String() string
type UpdateUserOptions ¶
type UpdateUserOptions struct { // } Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` Email string `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"` EmailPrivate bool `protobuf:"varint,3,opt,name=email_private,json=emailPrivate" json:"email_private,omitempty"` Biography string `protobuf:"bytes,4,opt,name=biography" json:"biography,omitempty"` FullName string `protobuf:"bytes,6,opt,name=full_name,json=fullName" json:"full_name,omitempty"` PictureUrl string `protobuf:"bytes,7,opt,name=picture_url,json=pictureUrl" json:"picture_url,omitempty"` Password string `protobuf:"bytes,8,opt,name=password" json:"password,omitempty"` FullNamePrivate bool `protobuf:"varint,9,opt,name=full_name_private,json=fullNamePrivate" json:"full_name_private,omitempty"` }
func (*UpdateUserOptions) Descriptor ¶
func (*UpdateUserOptions) Descriptor() ([]byte, []int)
func (*UpdateUserOptions) GetBiography ¶
func (m *UpdateUserOptions) GetBiography() string
func (*UpdateUserOptions) GetEmail ¶
func (m *UpdateUserOptions) GetEmail() string
func (*UpdateUserOptions) GetEmailPrivate ¶
func (m *UpdateUserOptions) GetEmailPrivate() bool
func (*UpdateUserOptions) GetFullName ¶
func (m *UpdateUserOptions) GetFullName() string
func (*UpdateUserOptions) GetFullNamePrivate ¶
func (m *UpdateUserOptions) GetFullNamePrivate() bool
func (*UpdateUserOptions) GetPassword ¶
func (m *UpdateUserOptions) GetPassword() string
func (*UpdateUserOptions) GetPictureUrl ¶
func (m *UpdateUserOptions) GetPictureUrl() string
func (*UpdateUserOptions) GetUsername ¶
func (m *UpdateUserOptions) GetUsername() string
func (*UpdateUserOptions) ProtoMessage ¶
func (*UpdateUserOptions) ProtoMessage()
func (*UpdateUserOptions) Reset ¶
func (m *UpdateUserOptions) Reset()
func (*UpdateUserOptions) String ¶
func (m *UpdateUserOptions) String() string
type UpdateUserReply ¶
type UpdateUserReply struct {
Err string `protobuf:"bytes,1,opt,name=err" json:"err,omitempty"`
}
func (*UpdateUserReply) Descriptor ¶
func (*UpdateUserReply) Descriptor() ([]byte, []int)
func (*UpdateUserReply) GetErr ¶
func (m *UpdateUserReply) GetErr() string
func (*UpdateUserReply) ProtoMessage ¶
func (*UpdateUserReply) ProtoMessage()
func (*UpdateUserReply) Reset ¶
func (m *UpdateUserReply) Reset()
func (*UpdateUserReply) String ¶
func (m *UpdateUserReply) String() string
type UpdateUserRequest ¶
type UpdateUserRequest struct { User *User `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"` Opts *UpdateUserOptions `protobuf:"bytes,2,opt,name=opts" json:"opts,omitempty"` }
func (*UpdateUserRequest) Descriptor ¶
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
func (*UpdateUserRequest) GetOpts ¶
func (m *UpdateUserRequest) GetOpts() *UpdateUserOptions
func (*UpdateUserRequest) GetUser ¶
func (m *UpdateUserRequest) GetUser() *User
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) Reset ¶
func (m *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶
func (m *UpdateUserRequest) String() string
type UpdateVoteOptions ¶
type UpdateVoteOptions struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` Branch string `protobuf:"bytes,2,opt,name=branch" json:"branch,omitempty"` Version string `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"` }
func (*UpdateVoteOptions) Descriptor ¶
func (*UpdateVoteOptions) Descriptor() ([]byte, []int)
func (*UpdateVoteOptions) GetBranch ¶
func (m *UpdateVoteOptions) GetBranch() string
func (*UpdateVoteOptions) GetUsername ¶
func (m *UpdateVoteOptions) GetUsername() string
func (*UpdateVoteOptions) GetVersion ¶
func (m *UpdateVoteOptions) GetVersion() string
func (*UpdateVoteOptions) ProtoMessage ¶
func (*UpdateVoteOptions) ProtoMessage()
func (*UpdateVoteOptions) Reset ¶
func (m *UpdateVoteOptions) Reset()
func (*UpdateVoteOptions) String ¶
func (m *UpdateVoteOptions) String() string
type UpdateVoteReply ¶
type UpdateVoteReply struct { Vote *Vote `protobuf:"bytes,1,opt,name=vote" json:"vote,omitempty"` Err string `protobuf:"bytes,2,opt,name=err" json:"err,omitempty"` }
func (*UpdateVoteReply) Descriptor ¶
func (*UpdateVoteReply) Descriptor() ([]byte, []int)
func (*UpdateVoteReply) GetErr ¶
func (m *UpdateVoteReply) GetErr() string
func (*UpdateVoteReply) GetVote ¶
func (m *UpdateVoteReply) GetVote() *Vote
func (*UpdateVoteReply) ProtoMessage ¶
func (*UpdateVoteReply) ProtoMessage()
func (*UpdateVoteReply) Reset ¶
func (m *UpdateVoteReply) Reset()
func (*UpdateVoteReply) String ¶
func (m *UpdateVoteReply) String() string
type UpdateVoteRequest ¶
type UpdateVoteRequest struct { Vote *Vote `protobuf:"bytes,1,opt,name=vote" json:"vote,omitempty"` Opts *UpdateVoteOptions `protobuf:"bytes,2,opt,name=opts" json:"opts,omitempty"` }
func (*UpdateVoteRequest) Descriptor ¶
func (*UpdateVoteRequest) Descriptor() ([]byte, []int)
func (*UpdateVoteRequest) GetOpts ¶
func (m *UpdateVoteRequest) GetOpts() *UpdateVoteOptions
func (*UpdateVoteRequest) GetVote ¶
func (m *UpdateVoteRequest) GetVote() *Vote
func (*UpdateVoteRequest) ProtoMessage ¶
func (*UpdateVoteRequest) ProtoMessage()
func (*UpdateVoteRequest) Reset ¶
func (m *UpdateVoteRequest) Reset()
func (*UpdateVoteRequest) String ¶
func (m *UpdateVoteRequest) String() string
type UploadAvatarOptions ¶
type UploadAvatarOptions struct { Image []byte `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` Filename string `protobuf:"bytes,2,opt,name=filename" json:"filename,omitempty"` Username string `protobuf:"bytes,3,opt,name=username" json:"username,omitempty"` }
func (*UploadAvatarOptions) Descriptor ¶
func (*UploadAvatarOptions) Descriptor() ([]byte, []int)
func (*UploadAvatarOptions) GetFilename ¶
func (m *UploadAvatarOptions) GetFilename() string
func (*UploadAvatarOptions) GetImage ¶
func (m *UploadAvatarOptions) GetImage() []byte
func (*UploadAvatarOptions) GetUsername ¶
func (m *UploadAvatarOptions) GetUsername() string
func (*UploadAvatarOptions) ProtoMessage ¶
func (*UploadAvatarOptions) ProtoMessage()
func (*UploadAvatarOptions) Reset ¶
func (m *UploadAvatarOptions) Reset()
func (*UploadAvatarOptions) String ¶
func (m *UploadAvatarOptions) String() string
type Upstream ¶
type Upstream struct { Ident string `protobuf:"bytes,1,opt,name=ident" json:"ident,omitempty"` UpstreamName string `protobuf:"bytes,2,opt,name=upstream_name,json=upstreamName" json:"upstream_name,omitempty"` UpstreamDescription string `protobuf:"bytes,3,opt,name=upstream_description,json=upstreamDescription" json:"upstream_description,omitempty"` Name string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"` Description string `protobuf:"bytes,5,opt,name=description" json:"description,omitempty"` Url string `protobuf:"bytes,6,opt,name=url" json:"url,omitempty"` Email string `protobuf:"bytes,7,opt,name=email" json:"email,omitempty"` DefaultUser string `protobuf:"bytes,8,opt,name=default_user,json=defaultUser" json:"default_user,omitempty"` GeoCoords string `protobuf:"bytes,9,opt,name=geo_coords,json=geoCoords" json:"geo_coords,omitempty"` Laws int32 `protobuf:"varint,10,opt,name=laws" json:"laws,omitempty"` Users int32 `protobuf:"varint,11,opt,name=users" json:"users,omitempty"` Metadata *UpstreamMetadata `protobuf:"bytes,12,opt,name=metadata" json:"metadata,omitempty"` Uid string `protobuf:"bytes,13,opt,name=uid" json:"uid,omitempty"` UserId string `protobuf:"bytes,14,opt,name=user_id,json=userId" json:"user_id,omitempty"` }
func (*Upstream) Descriptor ¶
func (*Upstream) GetDefaultUser ¶
func (*Upstream) GetDescription ¶
func (*Upstream) GetGeoCoords ¶
func (*Upstream) GetMetadata ¶
func (m *Upstream) GetMetadata() *UpstreamMetadata
func (*Upstream) GetUpstreamDescription ¶
func (*Upstream) GetUpstreamName ¶
func (*Upstream) ProtoMessage ¶
func (*Upstream) ProtoMessage()
type UpstreamMetadata ¶
type UpstreamMetadata struct { Email string `protobuf:"bytes,1,opt,name=email" json:"email,omitempty"` Wikipedia string `protobuf:"bytes,2,opt,name=wikipedia" json:"wikipedia,omitempty"` Twitter string `protobuf:"bytes,3,opt,name=twitter" json:"twitter,omitempty"` ApiUrl string `protobuf:"bytes,4,opt,name=api_url,json=apiUrl" json:"api_url,omitempty"` Facebook string `protobuf:"bytes,5,opt,name=facebook" json:"facebook,omitempty"` }
func (*UpstreamMetadata) Descriptor ¶
func (*UpstreamMetadata) Descriptor() ([]byte, []int)
func (*UpstreamMetadata) GetApiUrl ¶
func (m *UpstreamMetadata) GetApiUrl() string
func (*UpstreamMetadata) GetEmail ¶
func (m *UpstreamMetadata) GetEmail() string
func (*UpstreamMetadata) GetFacebook ¶
func (m *UpstreamMetadata) GetFacebook() string
func (*UpstreamMetadata) GetTwitter ¶
func (m *UpstreamMetadata) GetTwitter() string
func (*UpstreamMetadata) GetWikipedia ¶
func (m *UpstreamMetadata) GetWikipedia() string
func (*UpstreamMetadata) ProtoMessage ¶
func (*UpstreamMetadata) ProtoMessage()
func (*UpstreamMetadata) Reset ¶
func (m *UpstreamMetadata) Reset()
func (*UpstreamMetadata) String ¶
func (m *UpstreamMetadata) String() string
type User ¶
type User struct { Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` Uid string `protobuf:"bytes,2,opt,name=uid" json:"uid,omitempty"` Username string `protobuf:"bytes,3,opt,name=username" json:"username,omitempty"` Email string `protobuf:"bytes,4,opt,name=email" json:"email,omitempty"` FullName string `protobuf:"bytes,5,opt,name=full_name,json=fullName" json:"full_name,omitempty"` Biography string `protobuf:"bytes,6,opt,name=biography" json:"biography,omitempty"` Upstream string `protobuf:"bytes,7,opt,name=upstream" json:"upstream,omitempty"` UpstreamBody string `protobuf:"bytes,8,opt,name=upstream_body,json=upstreamBody" json:"upstream_body,omitempty"` PictureUrl string `protobuf:"bytes,9,opt,name=picture_url,json=pictureUrl" json:"picture_url,omitempty"` ProviderId string `protobuf:"bytes,10,opt,name=provider_id,json=providerId" json:"provider_id,omitempty"` Name string `protobuf:"bytes,11,opt,name=name" json:"name,omitempty"` UpstreamId string `protobuf:"bytes,12,opt,name=upstream_id,json=upstreamId" json:"upstream_id,omitempty"` EmailPrivate bool `protobuf:"varint,13,opt,name=email_private,json=emailPrivate" json:"email_private,omitempty"` Roles []string `protobuf:"bytes,14,rep,name=roles" json:"roles,omitempty"` DeletedAt string `protobuf:"bytes,15,opt,name=deleted_at,json=deletedAt" json:"deleted_at,omitempty"` Provider string `protobuf:"bytes,17,opt,name=provider" json:"provider,omitempty"` VoteCount int32 `protobuf:"varint,18,opt,name=vote_count,json=voteCount" json:"vote_count,omitempty"` LawCount int32 `protobuf:"varint,19,opt,name=law_count,json=lawCount" json:"law_count,omitempty"` HasPassword bool `protobuf:"varint,20,opt,name=has_password,json=hasPassword" json:"has_password,omitempty"` FullNamePrivate bool `protobuf:"varint,21,opt,name=full_name_private,json=fullNamePrivate" json:"full_name_private,omitempty"` LastLogin string `protobuf:"bytes,22,opt,name=last_login,json=lastLogin" json:"last_login,omitempty"` }
func (*User) Descriptor ¶
func (*User) GetBiography ¶
func (*User) GetDeletedAt ¶
func (*User) GetEmailPrivate ¶
func (*User) GetFullName ¶
func (*User) GetFullNamePrivate ¶
func (*User) GetHasPassword ¶
func (*User) GetLastLogin ¶
func (*User) GetLawCount ¶
func (*User) GetPictureUrl ¶
func (*User) GetProvider ¶
func (*User) GetProviderId ¶
func (*User) GetUpstream ¶
func (*User) GetUpstreamBody ¶
func (*User) GetUpstreamId ¶
func (*User) GetUsername ¶
func (*User) GetVoteCount ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
type UserMetadata ¶
type UserMetadata struct { OfficeEmail string `protobuf:"bytes,1,opt,name=office_email,json=officeEmail" json:"office_email,omitempty"` OfficePhone string `protobuf:"bytes,2,opt,name=office_phone,json=officePhone" json:"office_phone,omitempty"` OfficeAddr string `protobuf:"bytes,3,opt,name=office_addr,json=officeAddr" json:"office_addr,omitempty"` State string `protobuf:"bytes,4,opt,name=state" json:"state,omitempty"` WebsiteUrl string `protobuf:"bytes,5,opt,name=website_url,json=websiteUrl" json:"website_url,omitempty"` Rank string `protobuf:"bytes,6,opt,name=rank" json:"rank,omitempty"` Influence int32 `protobuf:"varint,7,opt,name=influence" json:"influence,omitempty"` }
func (*UserMetadata) Descriptor ¶
func (*UserMetadata) Descriptor() ([]byte, []int)
func (*UserMetadata) GetInfluence ¶
func (m *UserMetadata) GetInfluence() int32
func (*UserMetadata) GetOfficeAddr ¶
func (m *UserMetadata) GetOfficeAddr() string
func (*UserMetadata) GetOfficeEmail ¶
func (m *UserMetadata) GetOfficeEmail() string
func (*UserMetadata) GetOfficePhone ¶
func (m *UserMetadata) GetOfficePhone() string
func (*UserMetadata) GetRank ¶
func (m *UserMetadata) GetRank() string
func (*UserMetadata) GetState ¶
func (m *UserMetadata) GetState() string
func (*UserMetadata) GetWebsiteUrl ¶
func (m *UserMetadata) GetWebsiteUrl() string
func (*UserMetadata) ProtoMessage ¶
func (*UserMetadata) ProtoMessage()
func (*UserMetadata) Reset ¶
func (m *UserMetadata) Reset()
func (*UserMetadata) String ¶
func (m *UserMetadata) String() string
type UserRole ¶
type UserRole struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*UserRole) Descriptor ¶
func (*UserRole) ProtoMessage ¶
func (*UserRole) ProtoMessage()
type Version ¶
type Version struct { Uid string `protobuf:"bytes,1,opt,name=uid" json:"uid,omitempty"` BranchId string `protobuf:"bytes,2,opt,name=branch_id,json=branchId" json:"branch_id,omitempty"` UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId" json:"user_id,omitempty"` Version uint32 `protobuf:"varint,4,opt,name=version" json:"version,omitempty"` Hash string `protobuf:"bytes,5,opt,name=hash" json:"hash,omitempty"` Description string `protobuf:"bytes,6,opt,name=description" json:"description,omitempty"` Msg string `protobuf:"bytes,7,opt,name=msg" json:"msg,omitempty"` Body string `protobuf:"bytes,8,opt,name=body" json:"body,omitempty"` Label string `protobuf:"bytes,9,opt,name=label" json:"label,omitempty"` PublishedAt *google_protobuf.Timestamp `protobuf:"bytes,11,opt,name=published_at,json=publishedAt" json:"published_at,omitempty"` Tags map[string]string `` /* 129-byte string literal not displayed */ Yays int32 `protobuf:"varint,13,opt,name=yays" json:"yays,omitempty"` Nays int32 `protobuf:"varint,14,opt,name=nays" json:"nays,omitempty"` HasVoted bool `protobuf:"varint,15,opt,name=has_voted,json=hasVoted" json:"has_voted,omitempty"` UpstreamGroup string `protobuf:"bytes,16,opt,name=upstream_group,json=upstreamGroup" json:"upstream_group,omitempty"` CommentCount int32 `protobuf:"varint,17,opt,name=comment_count,json=commentCount" json:"comment_count,omitempty"` }
func (*Version) Descriptor ¶
func (*Version) GetBranchId ¶
func (*Version) GetCommentCount ¶
func (*Version) GetDescription ¶
func (*Version) GetHasVoted ¶
func (*Version) GetPublishedAt ¶
func (m *Version) GetPublishedAt() *google_protobuf.Timestamp
func (*Version) GetUpstreamGroup ¶
func (*Version) GetVersion ¶
func (*Version) ProtoMessage ¶
func (*Version) ProtoMessage()
type Vote ¶
type Vote struct { Uid string `protobuf:"bytes,1,opt,name=uid" json:"uid,omitempty"` LawId string `protobuf:"bytes,2,opt,name=law_id,json=lawId" json:"law_id,omitempty"` UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId" json:"user_id,omitempty"` Vote string `protobuf:"bytes,4,opt,name=vote" json:"vote,omitempty"` Comment string `protobuf:"bytes,5,opt,name=comment" json:"comment,omitempty"` Username string `protobuf:"bytes,6,opt,name=username" json:"username,omitempty"` Upstream string `protobuf:"bytes,7,opt,name=upstream" json:"upstream,omitempty"` Ident string `protobuf:"bytes,8,opt,name=ident" json:"ident,omitempty"` Branch string `protobuf:"bytes,9,opt,name=branch" json:"branch,omitempty"` Label string `protobuf:"bytes,10,opt,name=label" json:"label,omitempty"` CastAt *google_protobuf.Timestamp `protobuf:"bytes,11,opt,name=cast_at,json=castAt" json:"cast_at,omitempty"` Version uint32 `protobuf:"varint,12,opt,name=version" json:"version,omitempty"` VersionId string `protobuf:"bytes,13,opt,name=version_id,json=versionId" json:"version_id,omitempty"` PictureUrl string `protobuf:"bytes,14,opt,name=picture_url,json=pictureUrl" json:"picture_url,omitempty"` LawTitle string `protobuf:"bytes,15,opt,name=law_title,json=lawTitle" json:"law_title,omitempty"` Law *LawSet `protobuf:"bytes,16,opt,name=law" json:"law,omitempty"` User *User `protobuf:"bytes,17,opt,name=user" json:"user,omitempty"` }
func (*Vote) Descriptor ¶
func (*Vote) GetCastAt ¶
func (m *Vote) GetCastAt() *google_protobuf.Timestamp
func (*Vote) GetComment ¶
func (*Vote) GetLawTitle ¶
func (*Vote) GetPictureUrl ¶
func (*Vote) GetUpstream ¶
func (*Vote) GetUsername ¶
func (*Vote) GetVersion ¶
func (*Vote) GetVersionId ¶
func (*Vote) ProtoMessage ¶
func (*Vote) ProtoMessage()
type VoteResult ¶
type VoteResult struct { UpstreamGroup string `protobuf:"bytes,1,opt,name=upstream_group,json=upstreamGroup" json:"upstream_group,omitempty"` Result string `protobuf:"bytes,2,opt,name=result" json:"result,omitempty"` PublishedAt *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=published_at,json=publishedAt" json:"published_at,omitempty"` Upstream string `protobuf:"bytes,4,opt,name=upstream" json:"upstream,omitempty"` Ident string `protobuf:"bytes,5,opt,name=ident" json:"ident,omitempty"` }
func (*VoteResult) Descriptor ¶
func (*VoteResult) Descriptor() ([]byte, []int)
func (*VoteResult) GetIdent ¶
func (m *VoteResult) GetIdent() string
func (*VoteResult) GetPublishedAt ¶
func (m *VoteResult) GetPublishedAt() *google_protobuf.Timestamp
func (*VoteResult) GetResult ¶
func (m *VoteResult) GetResult() string
func (*VoteResult) GetUpstream ¶
func (m *VoteResult) GetUpstream() string
func (*VoteResult) GetUpstreamGroup ¶
func (m *VoteResult) GetUpstreamGroup() string
func (*VoteResult) ProtoMessage ¶
func (*VoteResult) ProtoMessage()
func (*VoteResult) Reset ¶
func (m *VoteResult) Reset()
func (*VoteResult) String ¶
func (m *VoteResult) String() string
type VoteSummary ¶
type VoteSummary struct { Yays int32 `protobuf:"varint,1,opt,name=yays" json:"yays,omitempty"` Nays int32 `protobuf:"varint,2,opt,name=nays" json:"nays,omitempty"` Present int32 `protobuf:"varint,3,opt,name=present" json:"present,omitempty"` NotPresent int32 `protobuf:"varint,4,opt,name=not_present,json=notPresent" json:"not_present,omitempty"` UpstreamYays int32 `protobuf:"varint,5,opt,name=upstream_yays,json=upstreamYays" json:"upstream_yays,omitempty"` UpstreamNays int32 `protobuf:"varint,6,opt,name=upstream_nays,json=upstreamNays" json:"upstream_nays,omitempty"` UpstreamPresent int32 `protobuf:"varint,7,opt,name=upstream_present,json=upstreamPresent" json:"upstream_present,omitempty"` UpstreamNotPresent int32 `protobuf:"varint,8,opt,name=upstream_not_present,json=upstreamNotPresent" json:"upstream_not_present,omitempty"` }
func (*VoteSummary) Descriptor ¶
func (*VoteSummary) Descriptor() ([]byte, []int)
func (*VoteSummary) GetNays ¶
func (m *VoteSummary) GetNays() int32
func (*VoteSummary) GetNotPresent ¶
func (m *VoteSummary) GetNotPresent() int32
func (*VoteSummary) GetPresent ¶
func (m *VoteSummary) GetPresent() int32
func (*VoteSummary) GetUpstreamNays ¶
func (m *VoteSummary) GetUpstreamNays() int32
func (*VoteSummary) GetUpstreamNotPresent ¶
func (m *VoteSummary) GetUpstreamNotPresent() int32
func (*VoteSummary) GetUpstreamPresent ¶
func (m *VoteSummary) GetUpstreamPresent() int32
func (*VoteSummary) GetUpstreamYays ¶
func (m *VoteSummary) GetUpstreamYays() int32
func (*VoteSummary) GetYays ¶
func (m *VoteSummary) GetYays() int32
func (*VoteSummary) ProtoMessage ¶
func (*VoteSummary) ProtoMessage()
func (*VoteSummary) Reset ¶
func (m *VoteSummary) Reset()
func (*VoteSummary) String ¶
func (m *VoteSummary) String() string
type WelawSvcClient ¶
type WelawSvcClient interface { // Auth Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error) LoginUser(ctx context.Context, in *LoginUserRequest, opts ...grpc.CallOption) (*LoginUserReply, error) MakeToken(ctx context.Context, in *MakeTokenRequest, opts ...grpc.CallOption) (*MakeTokenReply, error) LoginAs(ctx context.Context, in *LoginAsRequest, opts ...grpc.CallOption) (*LoginAsReply, error) Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutReply, error) // Ballot CreateVote(ctx context.Context, in *CreateVoteRequest, opts ...grpc.CallOption) (*CreateVoteReply, error) UpdateVote(ctx context.Context, in *UpdateVoteRequest, opts ...grpc.CallOption) (*UpdateVoteReply, error) GetVote(ctx context.Context, in *GetVoteRequest, opts ...grpc.CallOption) (*GetVoteReply, error) DeleteVote(ctx context.Context, in *DeleteVoteRequest, opts ...grpc.CallOption) (*DeleteVoteReply, error) ListVotes(ctx context.Context, in *ListVotesRequest, opts ...grpc.CallOption) (*ListVotesReply, error) // Law CreateLaw(ctx context.Context, in *CreateLawRequest, opts ...grpc.CallOption) (*CreateLawReply, error) // rpc ListVersions(ListVersionsRequest) returns (ListVersionsReply) {} GetLaw(ctx context.Context, in *GetLawRequest, opts ...grpc.CallOption) (*GetLawReply, error) ListLaws(ctx context.Context, in *ListLawsRequest, opts ...grpc.CallOption) (*ListLawsReply, error) // Upstream CreateUpstream(ctx context.Context, in *CreateUpstreamRequest, opts ...grpc.CallOption) (*CreateUpstreamReply, error) GetUpstream(ctx context.Context, in *GetUpstreamRequest, opts ...grpc.CallOption) (*GetUpstreamReply, error) ListUpstreams(ctx context.Context, in *ListUpstreamsRequest, opts ...grpc.CallOption) (*ListUpstreamsReply, error) UpdateUpstream(ctx context.Context, in *UpdateUpstreamRequest, opts ...grpc.CallOption) (*UpdateUpstreamReply, error) // User CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserReply, error) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserReply, error) ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersReply, error) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserReply, error) }
func NewWelawSvcClient ¶
func NewWelawSvcClient(cc *grpc.ClientConn) WelawSvcClient
type WelawSvcServer ¶
type WelawSvcServer interface { // Auth Login(context.Context, *LoginRequest) (*LoginReply, error) LoginUser(context.Context, *LoginUserRequest) (*LoginUserReply, error) MakeToken(context.Context, *MakeTokenRequest) (*MakeTokenReply, error) LoginAs(context.Context, *LoginAsRequest) (*LoginAsReply, error) Logout(context.Context, *LogoutRequest) (*LogoutReply, error) // Ballot CreateVote(context.Context, *CreateVoteRequest) (*CreateVoteReply, error) UpdateVote(context.Context, *UpdateVoteRequest) (*UpdateVoteReply, error) GetVote(context.Context, *GetVoteRequest) (*GetVoteReply, error) DeleteVote(context.Context, *DeleteVoteRequest) (*DeleteVoteReply, error) ListVotes(context.Context, *ListVotesRequest) (*ListVotesReply, error) // Law CreateLaw(context.Context, *CreateLawRequest) (*CreateLawReply, error) // rpc ListVersions(ListVersionsRequest) returns (ListVersionsReply) {} GetLaw(context.Context, *GetLawRequest) (*GetLawReply, error) ListLaws(context.Context, *ListLawsRequest) (*ListLawsReply, error) // Upstream CreateUpstream(context.Context, *CreateUpstreamRequest) (*CreateUpstreamReply, error) GetUpstream(context.Context, *GetUpstreamRequest) (*GetUpstreamReply, error) ListUpstreams(context.Context, *ListUpstreamsRequest) (*ListUpstreamsReply, error) UpdateUpstream(context.Context, *UpdateUpstreamRequest) (*UpdateUpstreamReply, error) // User CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error) GetUser(context.Context, *GetUserRequest) (*GetUserReply, error) ListUsers(context.Context, *ListUsersRequest) (*ListUsersReply, error) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error) }
Click to show internal directories.
Click to hide internal directories.