Documentation ¶
Overview ¶
Package rello is a generated protocol buffer package.
It is generated from these files:
rello.proto
It has these top-level messages:
Empty ChecklistUpdate Model CheckItem Action Data CheckList Card Board MemberCreator
Index ¶
- func RegisterRelloServer(s *grpc.Server, srv RelloServer)
- type Action
- func (*Action) Descriptor() ([]byte, []int)
- func (m *Action) GetData() *Data
- func (m *Action) GetDate() string
- func (m *Action) GetId() string
- func (m *Action) GetIdMemberCreator() string
- func (m *Action) GetMemberCreator() *MemberCreator
- func (m *Action) GetType() string
- func (*Action) ProtoMessage()
- func (m *Action) Reset()
- func (m *Action) String() string
- type Board
- type Card
- type CheckItem
- func (*CheckItem) Descriptor() ([]byte, []int)
- func (m *CheckItem) GetId() string
- func (m *CheckItem) GetIdChecklist() string
- func (m *CheckItem) GetName() string
- func (m *CheckItem) GetPos() int32
- func (m *CheckItem) GetState() string
- func (*CheckItem) ProtoMessage()
- func (m *CheckItem) Reset()
- func (m *CheckItem) String() string
- type CheckList
- type ChecklistUpdate
- type Data
- type Empty
- type MemberCreator
- func (*MemberCreator) Descriptor() ([]byte, []int)
- func (m *MemberCreator) GetAvatarHas() string
- func (m *MemberCreator) GetFullName() string
- func (m *MemberCreator) GetId() string
- func (m *MemberCreator) GetInitials() string
- func (m *MemberCreator) GetUsername() string
- func (*MemberCreator) ProtoMessage()
- func (m *MemberCreator) Reset()
- func (m *MemberCreator) String() string
- type Model
- func (*Model) Descriptor() ([]byte, []int)
- func (m *Model) GetCheckItems() []*CheckItem
- func (m *Model) GetId() string
- func (m *Model) GetIdBoard() string
- func (m *Model) GetIdCard() string
- func (m *Model) GetName() string
- func (m *Model) GetPos() int32
- func (*Model) ProtoMessage()
- func (m *Model) Reset()
- func (m *Model) String() string
- type RelloClient
- type RelloServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRelloServer ¶
func RegisterRelloServer(s *grpc.Server, srv RelloServer)
Types ¶
type Action ¶
type Action struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` IdMemberCreator string `protobuf:"bytes,2,opt,name=idMemberCreator" json:"idMemberCreator,omitempty"` Data *Data `protobuf:"bytes,3,opt,name=data" json:"data,omitempty"` Type string `protobuf:"bytes,4,opt,name=type" json:"type,omitempty"` Date string `protobuf:"bytes,5,opt,name=date" json:"date,omitempty"` MemberCreator *MemberCreator `protobuf:"bytes,6,opt,name=memberCreator" json:"memberCreator,omitempty"` }
func (*Action) Descriptor ¶
func (*Action) GetIdMemberCreator ¶
func (*Action) GetMemberCreator ¶
func (m *Action) GetMemberCreator() *MemberCreator
func (*Action) ProtoMessage ¶
func (*Action) ProtoMessage()
type Board ¶
type Board struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` ShortLink string `protobuf:"bytes,3,opt,name=shortLink" json:"shortLink,omitempty"` }
func (*Board) Descriptor ¶
func (*Board) GetShortLink ¶
func (*Board) ProtoMessage ¶
func (*Board) ProtoMessage()
type Card ¶
type Card struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` ShortLink string `protobuf:"bytes,3,opt,name=shortLink" json:"shortLink,omitempty"` IdShort int32 `protobuf:"varint,4,opt,name=idShort" json:"idShort,omitempty"` }
func (*Card) Descriptor ¶
func (*Card) GetIdShort ¶
func (*Card) GetShortLink ¶
func (*Card) ProtoMessage ¶
func (*Card) ProtoMessage()
type CheckItem ¶
type CheckItem struct { State string `protobuf:"bytes,1,opt,name=state" json:"state,omitempty"` IdChecklist string `protobuf:"bytes,2,opt,name=idChecklist" json:"idChecklist,omitempty"` Id string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"` Pos int32 `protobuf:"varint,6,opt,name=pos" json:"pos,omitempty"` }
func (*CheckItem) Descriptor ¶
func (*CheckItem) GetIdChecklist ¶
func (*CheckItem) ProtoMessage ¶
func (*CheckItem) ProtoMessage()
type CheckList ¶
type CheckList struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` }
func (*CheckList) Descriptor ¶
func (*CheckList) ProtoMessage ¶
func (*CheckList) ProtoMessage()
type ChecklistUpdate ¶
type ChecklistUpdate struct { Model *Model `protobuf:"bytes,1,opt,name=model" json:"model,omitempty"` Action *Action `protobuf:"bytes,2,opt,name=action" json:"action,omitempty"` }
Response structure from trello webhook TODO: Think about watching card in order to get card description and card due date for occurrence.Data and occurrence.Datetime respectively. TODO: Add references to the trello api documentation for fields
func (*ChecklistUpdate) Descriptor ¶
func (*ChecklistUpdate) Descriptor() ([]byte, []int)
func (*ChecklistUpdate) GetAction ¶
func (m *ChecklistUpdate) GetAction() *Action
func (*ChecklistUpdate) GetModel ¶
func (m *ChecklistUpdate) GetModel() *Model
func (*ChecklistUpdate) ProtoMessage ¶
func (*ChecklistUpdate) ProtoMessage()
func (*ChecklistUpdate) Reset ¶
func (m *ChecklistUpdate) Reset()
func (*ChecklistUpdate) String ¶
func (m *ChecklistUpdate) String() string
type Data ¶
type Data struct { CheckItem *CheckItem `protobuf:"bytes,1,opt,name=checkItem" json:"checkItem,omitempty"` Checklist *CheckList `protobuf:"bytes,2,opt,name=checklist" json:"checklist,omitempty"` Card *Card `protobuf:"bytes,3,opt,name=card" json:"card,omitempty"` Board *Board `protobuf:"bytes,4,opt,name=board" json:"board,omitempty"` }
func (*Data) Descriptor ¶
func (*Data) GetCheckItem ¶
func (*Data) GetChecklist ¶
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
type Empty ¶
type Empty struct { }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
type MemberCreator ¶
type MemberCreator 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"` }
func (*MemberCreator) Descriptor ¶
func (*MemberCreator) Descriptor() ([]byte, []int)
func (*MemberCreator) GetAvatarHas ¶
func (m *MemberCreator) GetAvatarHas() string
func (*MemberCreator) GetFullName ¶
func (m *MemberCreator) GetFullName() string
func (*MemberCreator) GetId ¶
func (m *MemberCreator) GetId() string
func (*MemberCreator) GetInitials ¶
func (m *MemberCreator) GetInitials() string
func (*MemberCreator) GetUsername ¶
func (m *MemberCreator) GetUsername() string
func (*MemberCreator) ProtoMessage ¶
func (*MemberCreator) ProtoMessage()
func (*MemberCreator) Reset ¶
func (m *MemberCreator) Reset()
func (*MemberCreator) String ¶
func (m *MemberCreator) String() string
type Model ¶
type Model struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` IdBoard string `protobuf:"bytes,3,opt,name=idBoard" json:"idBoard,omitempty"` IdCard string `protobuf:"bytes,4,opt,name=idCard" json:"idCard,omitempty"` Pos int32 `protobuf:"varint,5,opt,name=pos" json:"pos,omitempty"` CheckItems []*CheckItem `protobuf:"bytes,6,rep,name=checkItems" json:"checkItems,omitempty"` }
func (*Model) Descriptor ¶
func (*Model) GetCheckItems ¶
func (*Model) GetIdBoard ¶
func (*Model) ProtoMessage ¶
func (*Model) ProtoMessage()
type RelloClient ¶
type RelloClient interface { // CheckListWebhook is an endpoint for trello checklist webhooks that will // parse the incoming data. It ensures that a request is from trello by doing // a base64 encoding with the users secrete key. // it then calls out to ambition-model to create an occurrence CheckListWebhook(ctx context.Context, in *ChecklistUpdate, opts ...grpc.CallOption) (*Empty, error) EmptyRPC(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) }
func NewRelloClient ¶
func NewRelloClient(cc *grpc.ClientConn) RelloClient
type RelloServer ¶
type RelloServer interface { // CheckListWebhook is an endpoint for trello checklist webhooks that will // parse the incoming data. It ensures that a request is from trello by doing // a base64 encoding with the users secrete key. // it then calls out to ambition-model to create an occurrence CheckListWebhook(newcontext.Context, *ChecklistUpdate) (*Empty, error) EmptyRPC(newcontext.Context, *Empty) (*Empty, error) }
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
client/grpc
Package grpc provides a gRPC client for the Rello service.
|
Package grpc provides a gRPC client for the Rello service. |
client/http
Package http provides an HTTP client for the Rello service.
|
Package http provides an HTTP client for the Rello service. |
Click to show internal directories.
Click to hide internal directories.