rello

package
v0.0.0-...-f1b8dfb Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2017 License: Unlicense Imports: 7 Imported by: 7

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

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

func (*Action) GetData

func (m *Action) GetData() *Data

func (*Action) GetDate

func (m *Action) GetDate() string

func (*Action) GetId

func (m *Action) GetId() string

func (*Action) GetIdMemberCreator

func (m *Action) GetIdMemberCreator() string

func (*Action) GetMemberCreator

func (m *Action) GetMemberCreator() *MemberCreator

func (*Action) GetType

func (m *Action) GetType() string

func (*Action) ProtoMessage

func (*Action) ProtoMessage()

func (*Action) Reset

func (m *Action) Reset()

func (*Action) String

func (m *Action) String() string

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

func (*Board) GetId

func (m *Board) GetId() string

func (*Board) GetName

func (m *Board) GetName() string
func (m *Board) GetShortLink() string

func (*Board) ProtoMessage

func (*Board) ProtoMessage()

func (*Board) Reset

func (m *Board) Reset()

func (*Board) String

func (m *Board) String() string

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

func (*Card) GetId

func (m *Card) GetId() string

func (*Card) GetIdShort

func (m *Card) GetIdShort() int32

func (*Card) GetName

func (m *Card) GetName() string
func (m *Card) GetShortLink() string

func (*Card) ProtoMessage

func (*Card) ProtoMessage()

func (*Card) Reset

func (m *Card) Reset()

func (*Card) String

func (m *Card) String() string

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

func (*CheckItem) GetId

func (m *CheckItem) GetId() string

func (*CheckItem) GetIdChecklist

func (m *CheckItem) GetIdChecklist() string

func (*CheckItem) GetName

func (m *CheckItem) GetName() string

func (*CheckItem) GetPos

func (m *CheckItem) GetPos() int32

func (*CheckItem) GetState

func (m *CheckItem) GetState() string

func (*CheckItem) ProtoMessage

func (*CheckItem) ProtoMessage()

func (*CheckItem) Reset

func (m *CheckItem) Reset()

func (*CheckItem) String

func (m *CheckItem) String() string

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

func (*CheckList) GetId

func (m *CheckList) GetId() string

func (*CheckList) GetName

func (m *CheckList) GetName() string

func (*CheckList) ProtoMessage

func (*CheckList) ProtoMessage()

func (*CheckList) Reset

func (m *CheckList) Reset()

func (*CheckList) String

func (m *CheckList) String() string

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

func (*Data) GetBoard

func (m *Data) GetBoard() *Board

func (*Data) GetCard

func (m *Data) GetCard() *Card

func (*Data) GetCheckItem

func (m *Data) GetCheckItem() *CheckItem

func (*Data) GetChecklist

func (m *Data) GetChecklist() *CheckList

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) Reset

func (m *Data) Reset()

func (*Data) String

func (m *Data) String() string

type Empty

type Empty struct {
}

func (*Empty) Descriptor

func (*Empty) Descriptor() ([]byte, []int)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

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

func (*Model) GetCheckItems

func (m *Model) GetCheckItems() []*CheckItem

func (*Model) GetId

func (m *Model) GetId() string

func (*Model) GetIdBoard

func (m *Model) GetIdBoard() string

func (*Model) GetIdCard

func (m *Model) GetIdCard() string

func (*Model) GetName

func (m *Model) GetName() string

func (*Model) GetPos

func (m *Model) GetPos() int32

func (*Model) ProtoMessage

func (*Model) ProtoMessage()

func (*Model) Reset

func (m *Model) Reset()

func (*Model) String

func (m *Model) String() string

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
svc
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.

Jump to

Keyboard shortcuts

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