code: func ServiceWithEndpoint(endpoint *swarmtypes.EndpointSpec) ServiceSpecOpt {
  	return func(spec *swarmtypes.ServiceSpec) {
  		spec.EndpointSpec = endpoint
  	}
  }
docs: // ServiceWithEndpoint sets the Endpoint of the service