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: server.go
    path of file: ./repos/flipt/internal/server/authn/public
    
    the code of the file until where you have to start completion: package public

import (
	"context"

	"go.flipt.io/flipt/internal/config"
	"go.flipt.io/flipt/rpc/flipt/auth"
	"go.uber.org/zap"
	"google.golang.org/grpc"
	"google.golang.org/protobuf/types/known/emptypb"
)

type Server struct {
	logger *zap.Logger

	// response is static for the lifetime of the configuration
	// so we can compute it upfront and re-use
    
func NewServer(logger *zap.Logger, conf config.AuthenticationConfig) *Server {
	server := &Server{
		logger: logger,
		resp:   &auth.ListAuthenticationMethodsResponse{},
	}

	for _, info := range conf.Methods.AllMethods() {
		server.resp.Methods = append(server.resp.Methods, &auth.MethodInfo{
			Method:            info.AuthenticationMethodInfo.Method,
			Enabled:           info.Enabled,
			SessionCompatible: info.AuthenticationMethodInfo.SessionCompatible,
			Metadata:          info.AuthenticationMethodInfo.Metadata,
		})
	}

	return server
}