MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / ValidateSettings

Method ValidateSettings

model/channel.go:778–787  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

776}
777
778func (channel *Channel) ValidateSettings() error {
779 channelParams := &dto.ChannelSettings{}
780 if channel.Setting != nil && *channel.Setting != "" {
781 err := json.Unmarshal([]byte(*channel.Setting), channelParams)
782 if err != nil {
783 return err
784 }
785 }
786 return nil
787}
788
789func (channel *Channel) GetSetting() dto.ChannelSettings {
790 setting := dto.ChannelSettings{}

Callers 1

validateChannelFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected