func (p *ProfileClient) MarkAs(ctx context.Context, req *models.MarkAsRequest) (*models.Profile, error) {
	endpoint, err := p.MarkAsLoadBalancer.Endpoint()
	if err != nil {
		return nil, err
	}
	res, err := endpoint(ctx, req)
	if err != nil {
		return nil, err
	}
	return res.(*models.Profile), nil
}
MarkAs marks given account with given type constant, will be used mostly for
marking as bot.
package profile
import (
	"io"
	"github.com/cihangir/gene/example/tinder/models"
	"github.com/cihangir/gene/example/tinder/workers/kitworker"
	"github.com/go-kit/kit/endpoint"
	"github.com/go-kit/kit/log"
	"github.com/go-kit/kit/sd/lb"
	httptransport "github.com/go-kit/kit/transport/http"
	"golang.org/x/net/context"
)
type ProfileClient struct {
	CreateLoadBalancer lb.Balancer
	DeleteLoadBalancer lb.Balancer
	MarkAsLoadBalancer lb.Balancer
	OneLoadBalancer lb.Balancer
	UpdateLoadBalancer lb.Balancer
}
func NewProfileClient(clientOpts *kitworker.ClientOption, logger log.Logger) *ProfileClient {
	if clientOpts.LoadBalancerCreator == nil {
		panic("LoadBalancerCreator must be set")
	}
	return &ProfileClient{
		CreateLoadBalancer: createClientLoadBalancer(semiotics[EndpointNameCreate], clientOpts, logger),
		DeleteLoadBalancer: createClientLoadBalancer(semiotics[EndpointNameDelete], clientOpts, logger),
		MarkAsLoadBalancer: createClientLoadBalancer(semiotics[EndpointNameMarkAs], clientOpts, logger),
		OneLoadBalancer:    createClientLoadBalancer(semiotics[EndpointNameOne], clientOpts, logger),
		UpdateLoadBalancer: createClientLoadBalancer(semiotics[EndpointNameUpdate], clientOpts, logger),
	}
}
func (p *ProfileClient) Create(ctx context.Context, req *models.Profile) (*models.Profile, error) {
	endpoint, err := p.CreateLoadBalancer.Endpoint()
	if err != nil {
		return nil, err
	}
	res, err := endpoint(ctx, req)
	if err != nil {
		return nil, err
	}
	return res.(*models.Profile), nil
}
func (p *ProfileClient) Delete(ctx context.Context, req *int64) (*models.Profile, error) {
	endpoint, err := p.DeleteLoadBalancer.Endpoint()
	if err != nil {
		return nil, err
	}
	res, err := endpoint(ctx, req)
	if err != nil {
		return nil, err
	}
	return res.(*models.Profile), nil
}