Documentation
¶
Index ¶
- func GetChannelModelRequest(ctx context.Context, channel, model string) (int64, int64)
- func GetChannelModelTokensRequest(ctx context.Context, channel, model string) (int64, int64)
- func GetGroupModelRequest(ctx context.Context, group, model string) (int64, int64)
- func GetGroupModelTokennameRequest(ctx context.Context, group, model, tokenname string) (int64, int64)
- func GetGroupModelTokennameTokensRequest(ctx context.Context, group, model, tokenname string) (int64, int64)
- func GetGroupModelTokensRequest(ctx context.Context, group, model string) (int64, int64)
- func PushChannelModelRequest(ctx context.Context, channel, model string) (int64, int64, int64)
- func PushChannelModelTokensRequest(ctx context.Context, channel, model string, tokens int64) (int64, int64, int64)
- func PushGroupModelRequest(ctx context.Context, group, model string, overed int64) (int64, int64, int64)
- func PushGroupModelTokennameRequest(ctx context.Context, group, model, tokenname string) (int64, int64, int64)
- func PushGroupModelTokennameTokensRequest(ctx context.Context, group, model, tokenname string, tokens int64) (int64, int64, int64)
- func PushGroupModelTokensRequest(ctx context.Context, group, model string, maxTokens, tokens int64) (int64, int64, int64)
- type InMemoryRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetChannelModelRequest ¶
func GetGroupModelRequest ¶
func PushChannelModelRequest ¶
func PushGroupModelRequest ¶
Types ¶
type InMemoryRecord ¶
type InMemoryRecord struct {
// contains filtered or unexported fields
}
func NewInMemoryRecord ¶
func NewInMemoryRecord() *InMemoryRecord
func (*InMemoryRecord) GetRequest ¶
func (m *InMemoryRecord) GetRequest( duration time.Duration, keys ...string, ) (totalCount, secondCount int64)
func (*InMemoryRecord) PushRequest ¶
Click to show internal directories.
Click to hide internal directories.