serializers

package
v0.0.0-...-e394f33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelResponse

type ChannelResponse struct {
	ID string `json:"id"`
}

type ChannelsConfiguration

type ChannelsConfiguration struct {
	DisplayName      string
	Name             string
	Type             string
	MMTeamName       string
	MSTeamsTeamID    string
	MSTeamsChannelID string
}

type ClientResponse

type ClientResponse struct {
	UserResponse    []*UserResponse
	ChannelResponse []*ChannelResponse
	DMResponse      *ChannelResponse
	GMResponse      *ChannelResponse
}

type Config

type Config struct {
	ConnectionConfiguration ConnectionConfiguration
	UsersConfiguration      []UsersConfiguration
	ChannelsConfiguration   []ChannelsConfiguration
	PostsConfiguration      PostsConfiguration
}

func (*Config) IsChannelsConfigurationValid

func (c *Config) IsChannelsConfigurationValid() error

func (*Config) IsConnectionConfigurationValid

func (c *Config) IsConnectionConfigurationValid() error

func (*Config) IsUsersConfigurationValid

func (c *Config) IsUsersConfigurationValid() error

type ConnectionConfiguration

type ConnectionConfiguration struct {
	ServerURL     string
	AdminEmail    string
	AdminPassword string
}

type PostsConfiguration

type PostsConfiguration struct {
	Count         int
	MaxWordsCount int
	MaxWordLength int
	Duration      string
}

type UserResponse

type UserResponse struct {
	ID    string `json:"id"`
	Token string `json:"token"`
	Email string `json:"email"`
}

type UsersConfiguration

type UsersConfiguration struct {
	Username string
	Password string
	Email    string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL