proto

package
v0.0.0-...-100be9c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2018 License: BSD-2-Clause Imports: 6 Imported by: 0

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

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) Descriptor() ([]byte, []int)

func (*Author) GetEmail

func (m *Author) GetEmail() string

func (*Author) GetFullName

func (m *Author) GetFullName() string

func (*Author) GetPictureUrl

func (m *Author) GetPictureUrl() string

func (*Author) GetUid

func (m *Author) GetUid() string

func (*Author) GetUsername

func (m *Author) GetUsername() string

func (*Author) ProtoMessage

func (*Author) ProtoMessage()

func (*Author) Reset

func (m *Author) Reset()

func (*Author) String

func (m *Author) String() string

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) Descriptor() ([]byte, []int)

func (*Branch) GetLawId

func (m *Branch) GetLawId() string

func (*Branch) GetName

func (m *Branch) GetName() string

func (*Branch) GetUid

func (m *Branch) GetUid() string

func (*Branch) GetUpstream

func (m *Branch) GetUpstream() string

func (*Branch) GetUserId

func (m *Branch) GetUserId() string

func (*Branch) ProtoMessage

func (*Branch) ProtoMessage()

func (*Branch) Reset

func (m *Branch) Reset()

func (*Branch) String

func (m *Branch) String() string

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) Descriptor() ([]byte, []int)

func (*Comment) GetAnnotationCount

func (m *Comment) GetAnnotationCount() int32

func (*Comment) GetAnnotations

func (m *Comment) GetAnnotations() []*Annotation

func (*Comment) GetBranch

func (m *Comment) GetBranch() string

func (*Comment) GetComment

func (m *Comment) GetComment() string

func (*Comment) GetDisabled

func (m *Comment) GetDisabled() bool

func (*Comment) GetIdent

func (m *Comment) GetIdent() string

func (*Comment) GetLiked

func (m *Comment) GetLiked() bool

func (*Comment) GetLikes

func (m *Comment) GetLikes() int32

func (*Comment) GetUid

func (m *Comment) GetUid() string

func (*Comment) GetUpstream

func (m *Comment) GetUpstream() string

func (*Comment) GetUser

func (m *Comment) GetUser() *User

func (*Comment) GetUserId

func (m *Comment) GetUserId() string

func (*Comment) GetUsername

func (m *Comment) GetUsername() string

func (*Comment) GetVersion

func (m *Comment) GetVersion() uint32

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) Reset

func (m *Comment) Reset()

func (*Comment) String

func (m *Comment) String() string

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 (*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

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 (*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

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 (*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

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) Descriptor() ([]byte, []int)

func (*Law) GetDescription

func (m *Law) GetDescription() string

func (*Law) GetIdent

func (m *Law) GetIdent() string

func (*Law) GetShortTitle

func (m *Law) GetShortTitle() string

func (*Law) GetTitle

func (m *Law) GetTitle() string

func (*Law) GetUid

func (m *Law) GetUid() string

func (*Law) GetUpstream

func (m *Law) GetUpstream() string

func (*Law) GetUrl

func (m *Law) GetUrl() string

func (*Law) GetUserId

func (m *Law) GetUserId() string

func (*Law) ProtoMessage

func (*Law) ProtoMessage()

func (*Law) Reset

func (m *Law) Reset()

func (*Law) String

func (m *Law) String() string

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) Descriptor() ([]byte, []int)

func (*LawSet) GetAuthor

func (m *LawSet) GetAuthor() *Author

func (*LawSet) GetBranch

func (m *LawSet) GetBranch() *Branch

func (*LawSet) GetLaw

func (m *LawSet) GetLaw() *Law

func (*LawSet) GetUser

func (m *LawSet) GetUser() *User

func (*LawSet) GetVersion

func (m *LawSet) GetVersion() *Version

func (*LawSet) ProtoMessage

func (*LawSet) ProtoMessage()

func (*LawSet) Reset

func (m *LawSet) Reset()

func (*LawSet) String

func (m *LawSet) String() string

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 (*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

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 (*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

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 (*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

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 (*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

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 (*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

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) Descriptor() ([]byte, []int)

func (*Upstream) GetDefaultUser

func (m *Upstream) GetDefaultUser() string

func (*Upstream) GetDescription

func (m *Upstream) GetDescription() string

func (*Upstream) GetEmail

func (m *Upstream) GetEmail() string

func (*Upstream) GetGeoCoords

func (m *Upstream) GetGeoCoords() string

func (*Upstream) GetIdent

func (m *Upstream) GetIdent() string

func (*Upstream) GetLaws

func (m *Upstream) GetLaws() int32

func (*Upstream) GetMetadata

func (m *Upstream) GetMetadata() *UpstreamMetadata

func (*Upstream) GetName

func (m *Upstream) GetName() string

func (*Upstream) GetUid

func (m *Upstream) GetUid() string

func (*Upstream) GetUpstreamDescription

func (m *Upstream) GetUpstreamDescription() string

func (*Upstream) GetUpstreamName

func (m *Upstream) GetUpstreamName() string

func (*Upstream) GetUrl

func (m *Upstream) GetUrl() string

func (*Upstream) GetUserId

func (m *Upstream) GetUserId() string

func (*Upstream) GetUsers

func (m *Upstream) GetUsers() int32

func (*Upstream) ProtoMessage

func (*Upstream) ProtoMessage()

func (*Upstream) Reset

func (m *Upstream) Reset()

func (*Upstream) String

func (m *Upstream) String() string

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) Descriptor() ([]byte, []int)

func (*User) GetBiography

func (m *User) GetBiography() string

func (*User) GetDeletedAt

func (m *User) GetDeletedAt() string

func (*User) GetEmail

func (m *User) GetEmail() string

func (*User) GetEmailPrivate

func (m *User) GetEmailPrivate() bool

func (*User) GetFullName

func (m *User) GetFullName() string

func (*User) GetFullNamePrivate

func (m *User) GetFullNamePrivate() bool

func (*User) GetHasPassword

func (m *User) GetHasPassword() bool

func (*User) GetKey

func (m *User) GetKey() string

func (*User) GetLastLogin

func (m *User) GetLastLogin() string

func (*User) GetLawCount

func (m *User) GetLawCount() int32

func (*User) GetName

func (m *User) GetName() string

func (*User) GetPictureUrl

func (m *User) GetPictureUrl() string

func (*User) GetProvider

func (m *User) GetProvider() string

func (*User) GetProviderId

func (m *User) GetProviderId() string

func (*User) GetRoles

func (m *User) GetRoles() []string

func (*User) GetUid

func (m *User) GetUid() string

func (*User) GetUpstream

func (m *User) GetUpstream() string

func (*User) GetUpstreamBody

func (m *User) GetUpstreamBody() string

func (*User) GetUpstreamId

func (m *User) GetUpstreamId() string

func (*User) GetUsername

func (m *User) GetUsername() string

func (*User) GetVoteCount

func (m *User) GetVoteCount() int32

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

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) Descriptor() ([]byte, []int)

func (*UserRole) GetName

func (m *UserRole) GetName() string

func (*UserRole) ProtoMessage

func (*UserRole) ProtoMessage()

func (*UserRole) Reset

func (m *UserRole) Reset()

func (*UserRole) String

func (m *UserRole) String() string

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) Descriptor() ([]byte, []int)

func (*Version) GetBody

func (m *Version) GetBody() string

func (*Version) GetBranchId

func (m *Version) GetBranchId() string

func (*Version) GetCommentCount

func (m *Version) GetCommentCount() int32

func (*Version) GetDescription

func (m *Version) GetDescription() string

func (*Version) GetHasVoted

func (m *Version) GetHasVoted() bool

func (*Version) GetHash

func (m *Version) GetHash() string

func (*Version) GetLabel

func (m *Version) GetLabel() string

func (*Version) GetMsg

func (m *Version) GetMsg() string

func (*Version) GetNays

func (m *Version) GetNays() int32

func (*Version) GetPublishedAt

func (m *Version) GetPublishedAt() *google_protobuf.Timestamp

func (*Version) GetTags

func (m *Version) GetTags() map[string]string

func (*Version) GetUid

func (m *Version) GetUid() string

func (*Version) GetUpstreamGroup

func (m *Version) GetUpstreamGroup() string

func (*Version) GetUserId

func (m *Version) GetUserId() string

func (*Version) GetVersion

func (m *Version) GetVersion() uint32

func (*Version) GetYays

func (m *Version) GetYays() int32

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) Reset

func (m *Version) Reset()

func (*Version) String

func (m *Version) String() string

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) Descriptor() ([]byte, []int)

func (*Vote) GetBranch

func (m *Vote) GetBranch() string

func (*Vote) GetCastAt

func (m *Vote) GetCastAt() *google_protobuf.Timestamp

func (*Vote) GetComment

func (m *Vote) GetComment() string

func (*Vote) GetIdent

func (m *Vote) GetIdent() string

func (*Vote) GetLabel

func (m *Vote) GetLabel() string

func (*Vote) GetLaw

func (m *Vote) GetLaw() *LawSet

func (*Vote) GetLawId

func (m *Vote) GetLawId() string

func (*Vote) GetLawTitle

func (m *Vote) GetLawTitle() string

func (*Vote) GetPictureUrl

func (m *Vote) GetPictureUrl() string

func (*Vote) GetUid

func (m *Vote) GetUid() string

func (*Vote) GetUpstream

func (m *Vote) GetUpstream() string

func (*Vote) GetUser

func (m *Vote) GetUser() *User

func (*Vote) GetUserId

func (m *Vote) GetUserId() string

func (*Vote) GetUsername

func (m *Vote) GetUsername() string

func (*Vote) GetVersion

func (m *Vote) GetVersion() uint32

func (*Vote) GetVersionId

func (m *Vote) GetVersionId() string

func (*Vote) GetVote

func (m *Vote) GetVote() string

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) Reset

func (m *Vote) Reset()

func (*Vote) String

func (m *Vote) String() string

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 VoteValue

type VoteValue int32
const (
	VoteValue_YES         VoteValue = 0
	VoteValue_NO          VoteValue = 1
	VoteValue_PRESENT     VoteValue = 2
	VoteValue_NOT_PRESENT VoteValue = 3
)

func (VoteValue) EnumDescriptor

func (VoteValue) EnumDescriptor() ([]byte, []int)

func (VoteValue) String

func (x VoteValue) 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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL