| giolekva | f89e046 | 2020-05-02 17:47:06 +0400 | [diff] [blame^] | 1 | package events |
| 2 | |||||
| 3 | type query struct { | ||||
| 4 | query string | ||||
| 5 | operation string | ||||
| 6 | variables string | ||||
| 7 | } | ||||
| 8 | |||||
| 9 | // Implements EventStore | ||||
| 10 | type GraphQLClient struct { | ||||
| 11 | apiAddr string | ||||
| 12 | } | ||||
| 13 | |||||
| 14 | func NewGraphQLClient(apiAddr string) EventStore { | ||||
| 15 | return &GraphQLClient{apiAddr} | ||||
| 16 | } | ||||
| 17 | |||||
| 18 | func (c *GraphQLClient) GetEventsInState(state EventState) ([]Event, error) { | ||||
| 19 | return nil, nil | ||||
| 20 | } | ||||