{"modulePath":"github.com/lytics/grid","version":"v3.0.1+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\nPackage main is a generated protocol buffer package.\n\nIt is generated from these files:\n\n\tmsgs.proto\n\nIt has these top-level messages:\n\n\tEvent\n\tEventResponse\n\n## Functions\n\n```go\nfunc NewApi(c *grid.Client) *apiServer\n```\n\n## Types\n\n```go\ntype Event struct {\n\tTimestamp string `protobuf:\"bytes,1,opt,name=timestamp\" json:\"timestamp,omitempty\"`\n\tUser      string `protobuf:\"bytes,2,opt,name=user\" json:\"user,omitempty\"`\n\tUrl       string `protobuf:\"bytes,3,opt,name=url\" json:\"url,omitempty\"`\n}\n```\n\n```go\nfunc (*Event) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (*Event) ProtoMessage()\n```\n\n```go\nfunc (m *Event) Reset()\n```\n\n```go\nfunc (m *Event) String() string\n```\n\n```go\ntype EventResponse struct {\n\tId string `protobuf:\"bytes,1,opt,name=id\" json:\"id,omitempty\"`\n}\n```\n\n```go\nfunc (*EventResponse) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (*EventResponse) ProtoMessage()\n```\n\n```go\nfunc (m *EventResponse) Reset()\n```\n\n```go\nfunc (m *EventResponse) String() string\n```\n\n```go\ntype LeaderActor struct {\n\t// contains filtered or unexported fields\n}\n```\nLeaderActor is the scheduler to create and watch the workers but the work comes from http requests\n\n```go\nfunc (a *LeaderActor) Act(c context.Context)\n```\nAct checks for peers, ie: other processes running this code, in the same namespace and start the worker actor on one of them.\n\n```go\ntype WorkerActor struct {\n\t// contains filtered or unexported fields\n}\n```\nWorkerActor started by the leader.\n\n```go\nfunc (a *WorkerActor) Act(ctx context.Context)\n```\nAct listens for messages from an http agent, and does its work and responds.\n\n","path":"github.com/lytics/grid/examples/requestreply","name":"main","synopsis":"Package main is a generated protocol buffer package.","isRedistributable":true}
