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: basic_http_sub_session.go
    path of file: ./repos/lal/pkg/base
    
    the code of the file until where you have to start completion: // Copyright 2019, Chef.  All rights reserved.
// https://github.com/q191201771/lal
//
// Use of this source code is governed by a MIT-style license
// that can be found in the License file.
//
// Auth
    
func (session *BasicHttpSubSession) StreamName() string {
	var suffix string
	switch session.SessionType {
	case SessionTypeFlvSub:
		suffix = ".flv"
	case SessionTypeTsSub:
		suffix = ".ts"
	default:
		Log.Warnf("[%s] acquire stream name but protocol unknown.", session.UniqueKey())
	}
	return strings.TrimSuffix(session.UrlCtx.LastItemOfPath, suffix)
}