Documentation ¶
Index ¶
- Constants
- Variables
- func NewAddEndpoint(s Service) goa.Endpoint
- func NewListEndpoint(s Service) goa.Endpoint
- func NewViewedStoredResumeCollection(res StoredResumeCollection, view string) resumeviews.StoredResumeCollection
- type Client
- type Education
- type Endpoints
- type Experience
- type Resume
- type Service
- type StoredResume
- type StoredResumeCollection
Constants ¶
const ServiceName = "resume"
ServiceName is the name of the service as defined in the design. This is the same value that is set in the endpoint request contexts under the ServiceKey key.
Variables ¶
var MethodNames = [2]string{"list", "add"}
MethodNames lists the service method names as defined in the design. These are the same values that are set in the endpoint request contexts under the MethodKey key.
Functions ¶
func NewAddEndpoint ¶
NewAddEndpoint returns an endpoint function that calls the method "add" of service "resume".
func NewListEndpoint ¶
NewListEndpoint returns an endpoint function that calls the method "list" of service "resume".
func NewViewedStoredResumeCollection ¶
func NewViewedStoredResumeCollection(res StoredResumeCollection, view string) resumeviews.StoredResumeCollection
NewViewedStoredResumeCollection initializes viewed result type StoredResumeCollection from result type StoredResumeCollection using the given view.
Types ¶
type Client ¶
Client is the "resume" service client.
type Endpoints ¶
Endpoints wraps the "resume" service endpoints.
func NewEndpoints ¶
NewEndpoints wraps the methods of the "resume" service with endpoints.
type Experience ¶
type Resume ¶
type Resume struct { // Name in the resume Name string // Experience section in the resume Experience []*Experience // Education section in the resume Education []*Education }
type Service ¶
type Service interface { // List all stored resumes List(context.Context) (res StoredResumeCollection, err error) // Add n number of resumes and return their IDs. This is a multipart request // and each part has field name 'resume' and contains the encoded resume to be // added. Add(context.Context, []*Resume) (res []int, err error) }
The storage service makes it possible to add resumes using multipart.
type StoredResume ¶
type StoredResume struct { // ID of the resume ID int // Time when resume was created CreatedAt string // Name in the resume Name string // Experience section in the resume Experience []*Experience // Education section in the resume Education []*Education }
type StoredResumeCollection ¶
type StoredResumeCollection []*StoredResume
StoredResumeCollection is the result type of the resume service list method.
func NewStoredResumeCollection ¶
func NewStoredResumeCollection(vres resumeviews.StoredResumeCollection) StoredResumeCollection
NewStoredResumeCollection initializes result type StoredResumeCollection from viewed result type StoredResumeCollection.