Documentation ¶
Overview ¶
Package users is a generated protocol buffer package.
It is generated from these files:
users.proto
It has these top-level messages:
User UserInfo TrelloInfo
Index ¶
- func RegisterUsersServer(s *grpc.Server, srv UsersServer)
- type TrelloInfo
- func (*TrelloInfo) Descriptor() ([]byte, []int)
- func (m *TrelloInfo) GetAvatarHas() string
- func (m *TrelloInfo) GetFullName() string
- func (m *TrelloInfo) GetID() string
- func (m *TrelloInfo) GetInitials() string
- func (m *TrelloInfo) GetUsername() string
- func (m *TrelloInfo) GetWebhookURL() string
- func (*TrelloInfo) ProtoMessage()
- func (m *TrelloInfo) Reset()
- func (m *TrelloInfo) String() string
- type User
- type UserInfo
- type UsersClient
- type UsersServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUsersServer ¶
func RegisterUsersServer(s *grpc.Server, srv UsersServer)
Types ¶
type TrelloInfo ¶
type TrelloInfo struct { ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"` AvatarHas string `protobuf:"bytes,2,opt,name=AvatarHas" json:"AvatarHas,omitempty"` FullName string `protobuf:"bytes,3,opt,name=FullName" json:"FullName,omitempty"` Initials string `protobuf:"bytes,4,opt,name=Initials" json:"Initials,omitempty"` Username string `protobuf:"bytes,5,opt,name=Username" json:"Username,omitempty"` WebhookURL string `protobuf:"bytes,6,opt,name=WebhookURL" json:"WebhookURL,omitempty"` }
TrelloInfo comes from trello, this information is used by [`ambition-rello`](https://github.com/adamryman/ambition-rello)
func (*TrelloInfo) Descriptor ¶
func (*TrelloInfo) Descriptor() ([]byte, []int)
func (*TrelloInfo) GetAvatarHas ¶
func (m *TrelloInfo) GetAvatarHas() string
func (*TrelloInfo) GetFullName ¶
func (m *TrelloInfo) GetFullName() string
func (*TrelloInfo) GetID ¶
func (m *TrelloInfo) GetID() string
func (*TrelloInfo) GetInitials ¶
func (m *TrelloInfo) GetInitials() string
func (*TrelloInfo) GetUsername ¶
func (m *TrelloInfo) GetUsername() string
func (*TrelloInfo) GetWebhookURL ¶
func (m *TrelloInfo) GetWebhookURL() string
func (*TrelloInfo) ProtoMessage ¶
func (*TrelloInfo) ProtoMessage()
func (*TrelloInfo) Reset ¶
func (m *TrelloInfo) Reset()
func (*TrelloInfo) String ¶
func (m *TrelloInfo) String() string
type User ¶
type User struct { // ID = 0 for create // Id is immutable ID int64 `protobuf:"varint,1,opt,name=ID" json:"ID,omitempty"` Info *UserInfo `protobuf:"bytes,2,opt,name=Info" json:"Info,omitempty"` Trello *TrelloInfo `protobuf:"bytes,9,opt,name=Trello" json:"Trello,omitempty"` }
func (*User) Descriptor ¶
func (*User) GetTrello ¶
func (m *User) GetTrello() *TrelloInfo
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
type UserInfo ¶
type UserInfo struct { Username string `protobuf:"bytes,1,opt,name=Username" json:"Username,omitempty"` Email string `protobuf:"bytes,2,opt,name=Email" json:"Email,omitempty"` Hash string `protobuf:"bytes,3,opt,name=Hash" json:"Hash,omitempty"` Salt string `protobuf:"bytes,4,opt,name=Salt" json:"Salt,omitempty"` }
func (*UserInfo) Descriptor ¶
func (*UserInfo) GetUsername ¶
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
type UsersClient ¶
type UsersClient interface { // Create takes information about a user and creates an entry // It returns that User with it's ID populated CreateUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error) // ReadUser takes some information about a user and tries to find the // user with that information // Accepted values: ID, Info.Username, Info.email, and Trello.ID ReadUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error) // UpdateUser requires an ID, which can be obttained from ReadUser. // All other non-zerp values will be updated UpdateUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error) // DeleteUser requires an ID, as a Read before a delete is a good idea. // It will return User with just thre requested ID on success DeleteUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error) }
func NewUsersClient ¶
func NewUsersClient(cc *grpc.ClientConn) UsersClient
type UsersServer ¶
type UsersServer interface { // Create takes information about a user and creates an entry // It returns that User with it's ID populated CreateUser(newcontext.Context, *User) (*User, error) // ReadUser takes some information about a user and tries to find the // user with that information // Accepted values: ID, Info.Username, Info.email, and Trello.ID ReadUser(newcontext.Context, *User) (*User, error) // UpdateUser requires an ID, which can be obttained from ReadUser. // All other non-zerp values will be updated UpdateUser(newcontext.Context, *User) (*User, error) // DeleteUser requires an ID, as a Read before a delete is a good idea. // It will return User with just thre requested ID on success DeleteUser(newcontext.Context, *User) (*User, error) }
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
client/grpc
Package grpc provides a gRPC client for the Users service.
|
Package grpc provides a gRPC client for the Users service. |
client/http
Package http provides an HTTP client for the Users service.
|
Package http provides an HTTP client for the Users service. |
Click to show internal directories.
Click to hide internal directories.