You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ephemeral_handler.go
    path of file: ./repos/client/go/service
    
    the code of the file until where you have to start completion: // Handlers for ephemeral-related gregor messages

package service

import (
	"encoding/json"
	"fmt"
	"strings"

	"golang.org/x/net/context"

	"github.com/keybase/client/go/ephemeral"
	"github.com/keybase/client/go/gregor"
	"github.com/keybase/client/go/libkb"
	"github.com/keybase/client/go/protocol/gregor1"
	"github.com/keybase/client/go/protocol/keybase1"
)

const ekHandlerName = "ephemeralHandler"

type ekHandler struct {
	libkb.Contextifi
    
func (r *ekHandler) newTeamEK(ctx context.Context, cli gregor1.IncomingInterface, item gregor.Item) error {
	r.G().Log.CDebugf(ctx, "ekHandler: ephemeral.new_team_ek received")
	var msg keybase1.NewTeamEkArg
	if err := json.Unmarshal(item.Body().Bytes(), &msg); err != nil {
		r.G().Log.CDebugf(ctx, "error unmarshaling ephemeral.new_team_ek item: %s", err)
		return err
	}
	r.G().Log.CDebugf(ctx, "ephemeral.new_team_ek unmarshaled: %+v", msg)

	if err := ephemeral.HandleNewTeamEK(r.MetaContext(ctx), msg.Id, msg.Generation); err != nil {
		return err
	}

	r.G().Log.CDebugf(ctx, "dismissing ephemeral.new_team_ek item since action succeeded")
	return r.G().GregorState.DismissItem(ctx, cli, item.Metadata().MsgID())
}