suffrage_models

package
v0.0.0-...-82f818e Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GraphqlBallotModel = gql.NewObject(gql.ObjectConfig{
	Name: "Suffrage",
	Fields: gql.Fields{
		"_id": &gql.Field{
			Type: gql.String,
		},
		"institute": &gql.Field{
			Type: gql.String,
		},
		"endorsement": &gql.Field{
			Type: gql.String,
		},
		"suffrage": &gql.Field{
			Type: gql.String,
		},
		"created": &gql.Field{
			Type: gql.Int,
		},
	},
})

Functions

This section is empty.

Types

type SuffrageModel

type SuffrageModel struct {
	ID          primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	CampaignID  primitive.ObjectID `bson:"campaignId,omitempty" json:"campaignId"`
	Endorsement primitive.ObjectID `bson:"endorsement,omitempty" json:"endorsement"`
	Suffrage    primitive.ObjectID `bson:"suffrage,omitempty" json:"suffrage"`
	Created     int64              `bson:"created" json:"created"`
}

Jump to

Keyboard shortcuts

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