github.com/PentoHQ/moq@v0.0.0-20190507125140-c45c141f300b/pkg/moq/testpackages/example/example.go (about)

     1  package example
     2  
     3  import "context"
     4  
     5  // Person is a person.
     6  type Person struct {
     7  	ID      string
     8  	Name    string
     9  	Company string
    10  	Website string
    11  }
    12  
    13  // PersonStore stores people.
    14  type PersonStore interface {
    15  	Get(ctx context.Context, id string) (*Person, error)
    16  	Create(ctx context.Context, person *Person, confirm bool) error
    17  	ClearCache(id string)
    18  }